Package: python-matplotlib
Version: 0.87.7-0.1
Setting logscale on an axes breaks rescaling sometimes.
Here's a simple example script:
import pylab
f = pylab.figure()
ax = f.gca()
ax.plot([1, 10, 100], [1,2,3])
ax.set_xscale('log')
ax.cla()
ax.plot([1, 10, 100], [1,2,3])
pylab.show()
This gives:
Traceback (most recent call last):
File "resize.py", line 9, in ?
ax.plot([1, 10, 100], [1,2,3])
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
2131, in plot
self.autoscale_view(scalex=scalex, scaley=scaley)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line 985,
in autoscale_view
self.set_xlim(XL)
File "/usr/lib/python2.4/site-packages/matplotlib/axes.py", line
1220, in set_xlim
raise ValueError('Cannot set nonpositive limits with log transform')
ValueError: Cannot set nonpositive limits with log transform
Elrond
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]