Navigation:  Welcome to GRAPH-XT > Getting Started >

Getting Started with Polar Plots

 

Previous pageReturn to chapter overviewNext page

lampe

Info: A very detailed polar plot example can be found in the DPlot_example1.prg example program, see SUB Dplot_polarplot.

 

If you want, for example, a polar plot of the equation Y=abs(sin(3*X)) similar to this:

clip0001

 

We use the built-in function generator of DPlot like this:

Dummy=FNDplot_send_cmd("[FunctionOfXY1Y2(""f=abs(sin(3*x))"",0,7,0.01)]")

 

... you'll likely find that you get a plot with linear X, linear Y scaling similar to this instead:

 

clip0002

 

This is easily fixed by using the following commands:

Dummy=FNDplot_send_cmd("[Scale(8)]")             ! create polar plot

Dummy=FNDplot_send_cmd("[NumberFormat(0,8)]")   ! X axis = fractions of PI

Dummy=FNDplot_send_cmd("[ManualScale(,0,,1.2)]") ! manual scale