plotAddPolar#
Purpose#
Adds a graph using polar coordinates to an existing polar graph.
Format#
- plotAddPolar([myPlot, ]radius, theta)#
- Parameters:
myPlot (struct) – Optional argument. A
plotControlstructure.radius (Nx1 or NxM matrix) – Each column contains the magnitude for a particular line.
theta (Nx1 or NxM matrix) – Each column represents the angle values for a particular line.
Remarks#
plotAddPolar() may only add curves to 2-D graphs.
This function will not change any of the current graph’s settings other than to resize the view as necessary to display the new curve.
Examples#
// Create angle values
theta = seqa(0, 0.1, 63);
// Plot a circle with radius 2
r1 = ones(63, 1) * 2;
plotPolar(r1, theta);
// Add a cardioid curve to the same graph
r2 = 1 + cos(theta);
plotAddPolar(r2, theta);
See also
Functions plotAddBar(), plotAddHist(), plotAddHistF(), plotAddHistP(), plotAddXY()