Thanks for the help, but I can't quite see where to add the add_axes code.
Here is the code I have been using to plot, the polar plot is a subplot.
fig=figure()
ax=fig.add_subplot(111, polar=True)
ax.set_xticklabels(["E",45,"N",315,"W",225,"S",135])
ax.set_yticklabels([80,70,60,50,40,30,20,10])
...
ax.plot(az, alt, 'b')
fig.savefig('AzvAlt.png')
show()
Michael Droettboom-3 wrote:
···
I'm embarrassed to see that I neglected to document this, but you can
pass a "resolution" keyword argument to add_axes which sets the number
of points of interpolation between each pair of data points. Set this
to 1 to disable interpolation.
This will be documented shortly.
Mike
jamesf0 wrote:
Hi,
Im having some trouble with this "seemingly" simple task of plotting
straight lines/fitted curves on a polar plot.
I am trying to create a plot that resembles the layout of the chart seen
below:
http://www.nabble.com/file/p21721073/brisbane.png
So far I have only been able to plot data like so:
http://www.nabble.com/file/p21721073/AzvAlt.png
The blue line should be similar to the bottom line of the first example
plot. The line would ultimately be formed by fitting a straight
line/curve
through the points, instead of the way matplotlib is plotting.
I am plotting tuples of values (az and alt), and plotting using:
ax.plot(az, alt, 'b')
--
Michael Droettboom
Science Software Branch
Operations and Engineering Division
Space Telescope Science Institute
Operated by AURA for NASA
------------------------------------------------------------------------------
This SF.net email is sponsored by:
SourcForge Community
SourceForge wants to tell your story.
http://p.sf.net/sfu/sf-spreadtheword
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users
--
View this message in context: http://www.nabble.com/How-to-plot-straight-lines-on-polar-plots-tp21721073p21737964.html
Sent from the matplotlib - users mailing list archive at Nabble.com.