jamesf0 <jamesf0@...2472...> 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 the resolution will get passed to the PolarAxes instance.
···
--
Jouni K. Sepp�nen
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 = subplot_class_factory(projection_class)(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 6823, in
__init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/projections/polar.py",
line 171, in __init__
Axes.__init__(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 537, in
__init__
if len(kwargs): martist.setp(self, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 894, in
setp
func = getattr(o,funcName)
AttributeError: 'PolarAxesSubplot' object has no attribute 'set_resolution'
Jouni K. Seppänen wrote:
···
Change this to
ax=fig.add_subplot(111, polar=True, resolution=1)
and the resolution will get passed to the PolarAxes instance.
--
Jouni K. Seppänen
http://www.iki.fi/jks
--
View this message in context: http://www.nabble.com/How-to-plot-straight-lines-on-polar-plots-tp21721073p21742133.html
Sent from the matplotlib - users mailing list archive at Nabble.com.
What version of mpl are you using? This should be fixed for releases >= 0.98.4
JDH
···
On Fri, Jan 30, 2009 at 12:28 AM, jamesf0 <jamesf0@...2472...> 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 "/usr/lib/python2.5/site-packages/matplotlib/figure.py", line 676, in
add_subplot
a = subplot_class_factory(projection_class)(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 6823, in
__init__
self._axes_class.__init__(self, fig, self.figbox, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/projections/polar.py",
line 171, in __init__
Axes.__init__(self, *args, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 537, in
__init__
if len(kwargs): martist.setp(self, **kwargs)
File "/usr/lib/python2.5/site-packages/matplotlib/artist.py", line 894, in
setp
func = getattr(o,funcName)
AttributeError: 'PolarAxesSubplot' object has no attribute 'set_resolution'