Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-30 Thread John Hunter
On Fri, Jan 30, 2009 at 12:28 AM, jamesf0 jame...@utas.edu.au wrote: Sorry, I have done that change, and get these errors: Traceback (most recent call last): File test7.py, line 36, in module ax=fig.add_subplot(111, polar=True, resolution=1) File

[Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread jamesf0
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

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread Jae-Joon Lee
I don't see any elegant way to do that. The easiest way I can think of is to use a derived line2d class. Something like below will work. Others may have better ideas. import matplotlib.lines class Line2DNoInterpolation(matplotlib.lines.Line2D): def recache(self):

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread Michael Droettboom
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

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread jamesf0
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]) ...

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread Tim Michelsen
Hello, I am trying to create a plot that resembles the layout of the chart seen below: http://www.nabble.com/file/p21721073/brisbane.png are you actually trying to plot sun path digrams? May you share a part of your code once it is completed? I'd be very interested in seeing a working

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread jamesf0
Yeah trying to plot sun paths. I'll be more than happy to share once it's complete. James. Timmie wrote: Hello, I am trying to create a plot that resembles the layout of the chart seen below: http://www.nabble.com/file/p21721073/brisbane.png are you actually trying to plot sun

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread Jouni K . Seppänen
jamesf0 jame...@utas.edu.au writes: 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. ax=fig.add_subplot(111, polar=True) Change this to ax=fig.add_subplot(111, polar=True, resolution=1) and

Re: [Matplotlib-users] How to plot straight lines on polar plots

2009-01-29 Thread jamesf0
Sorry, I have done that change, and get these errors: Traceback (most recent call last): File test7.py, line 36, in module ax=fig.add_subplot(111, polar=True, resolution=1) File /usr/lib/python2.5/site-packages/matplotlib/figure.py, line 676, in add_subplot a =