Plots > Polar Plots > Example: Parametric Curves in 2D Plots
Example: Parametric Curves in 2D Plots
Plot the points of a curve whose coordinates are functions of one or more parameters.
One Parameter
1. Use the sin function to define the functions x and y in terms of parameter a:
Click to copy this expression
Click to copy this expression
2. Plot y against x. For parametric curves, 500 points are plotted over a range determined by an algorithm. When you change the number of plotted points, the range is changed accordingly.
Click to copy this expression
Two Parameters
1. Set the number of data points.
Click to copy this expression
Click to copy this expression
2. Define the angle and the radius at each data point.
Click to copy this expression
Click to copy this expression
3. Define the parametrized coordinate vectors.
Click to copy this expression
Click to copy this expression
4. Use the augment function to record the above values in a matrix so that you can reuse them or write them to an external file for other applications.
Click to copy this expression
Click to copy this expression
5. Use the stack function to add titles to matrix.
Click to copy this expression
Click to copy this expression
6. Plot y against x. You can change the plotted points by modifying the definition of the range variable i.
Click to copy this expression
7. Show the above curve as a polar plot (non-parametric).
Click to copy this expression
Was this helpful?