Difference between revisions of "Polar plot (xfig example)"

From Remeis-Wiki
Jump to navigation Jump to search
m (Obst moved page Example: Polar plot to Polar plot over a redirect without leaving a redirect)
m (Obst moved page Polar plot to Polar plot (xfig example) without leaving a redirect)
 
(No difference)

Latest revision as of 10:13, 17 April 2018

Polar plot with 'xfig_polarplot_new'

Polarplot.png
   % Plot coordinate transformation
   variable min = 0,
            max = 180,
            dir = 1,
            org = 45;
   variable ang = [min:max:#100];
   variable rad = 0.5+0.5*sin(ang*PI/180);
   variable xf = xfig_polarplot_new(; min=min, max=max, origin=org, dir=dir, grid );
   xf.plot( rad*cos( dir*(ang+org)*PI/180 ),
            rad*sin( dir*(ang+org)*PI/180 ) ; color="red" );
   xf.render("/tmp/test.pdf");