John Hunter wrote:
>>>>>>"Louis" == Louis Pecora <[EMAIL PROTECTED]> writes:
>>>>>>
>>>>>>
> Louis> *This is deep in matplotlib. Anyone know what's happening?
>
> Louis> Here's what line 335 in ticker.py looks like (not sure if
> Louis> this helps since you'd probably have to know the code of
> Louis> matplotlib):
>
> Louis> # set the format string to format all the ticklabels locs =
> Louis> (array(self.locs)-self.offset) /
> Louis> 10**self.orderOfMagnitude+1e-15
>
> Louis> But there's that / operator.
>
>What version of Numeric/numarray are you running?
>
Not sure. It was installed last year IIRC. How do I find the version #?
>Try running your
>example script with
>
> > pythonw myscript.py --verbose-helpful
>
>and report the output.
>
>
Here ya go: (it also gives the Numeric version and so maybe answers
the above question):
louispec% pythonw simple_plot.py --verbose-helpful
matplotlib data path
/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib
loaded rc file /Users/louispecora/.matplotlibrc
matplotlib version 0.82
verbose.level helpful
interactive is False
platform is darwin
numerix Numeric 22.0
font search path
['/System/Library/Frameworks/Python.framework/Versions/2.3/share/matplotlib']
loaded ttfcache file /Users/louispecora/.ttffont.cache
backend WXAgg version 2.6.1.0
Traceback (most recent call last):
File "simple_plot.py", line 16, in ?
savefig('simple_plot')
File "/Library/Python/2.3/pylab.py", line 751, in savefig
File "/platlib/matplotlib/figure.py", line 618, in savefig
File "/platlib/matplotlib/backends/backend_wxagg.py", line 83, in
print_figure
File "/platlib/matplotlib/backends/backend_agg.py", line 432, in
print_figure
File "/platlib/matplotlib/backends/backend_agg.py", line 369, in draw
File "/platlib/matplotlib/figure.py", line 498, in draw
File "/platlib/matplotlib/axes.py", line 1361, in draw
File "/platlib/matplotlib/axis.py", line 530, in draw
File "/platlib/matplotlib/ticker.py", line 297, in set_locs
File "/platlib/matplotlib/ticker.py", line 335, in _set_format
TypeError: unsupported operand type(s) for /: 'array' and 'int'
Exit 1
>Also, does it help to replace the 10**self.orderOfMagnitude with
>10.0**self.orderOfMagnitude? I didn't write that section of the code,
>but I think this is what the author (Darren, CCd) intends.
>
>
Haven't tried it, yet. Next step.
Thanks.
--
Cheers,
Lou Pecora
Code 6362
Naval Research Lab
Washington, DC 20375
USA
Ph: +202-767-6002
email: [EMAIL PROTECTED]
_______________________________________________
Pythonmac-SIG maillist - [email protected]
http://mail.python.org/mailman/listinfo/pythonmac-sig