Hi,
sorry for the latency, holidays just finished :-(
Find with this message a modified version of windrose_oo, but I'm not
very familiar with the new projections facilities, and then the code is
buggy :
##############################
Traceback (most recent call last):
File "windrose_oo.py", line 464, in <module>
ax = WindroseAxes(fig, rect, axisbg='w')
File "windrose_oo.py", line 33, in __init__
PolarAxes.__init__(self, *args, **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 529,
in __init__
self.cla()
File "windrose_oo.py", line 47, in cla
PolarAxes.cla(self)
File
"/usr/lib/python2.5/site-packages/matplotlib/projections/polar.py", line
177, in cla
Axes.cla(self)
File "/usr/lib/python2.5/site-packages/matplotlib/axes.py", line 771,
in cla
self.xaxis.cla()
AttributeError: 'NoneType' object has no attribute 'cla'
#############################
I don't understand why this problem occurs, if someone can the mistake,
I'll appreciate :-)
Thanks
Christopher Barker a écrit :
> Lionel Roubeyrie wrote:
>> find with this message a modified version of windrose to be OO
>> compliant.
>
> Lionel,
>
> I've had this message of yours (from March), and finally had a chance
> to use it.
>
> Unfortunately, it seems to use the old Transforms mechanism, so won't
> work with the latest MPL.
>
> have you ported it over yet? Can anyone else help out with a port?
>
> Thanks,
>
> -Chris
>
>
>
>
>
--
Lionel Roubeyrie - lroubeyrie@...
Chargé d'études et de maintenance
LIMAIR - la Surveillance de l'Air en Limousin
http://www.limair.asso.fr
|