From: <md...@us...> - 2007-11-09 20:59:49
|
Revision: 4197 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4197&view=rev Author: mdboom Date: 2007-11-09 12:59:47 -0800 (Fri, 09 Nov 2007) Log Message: ----------- Bugfix: [ 1757315 ] ValueError: Cannot set nonpositive limits with log transform. The axes scales were not getting set back to "linear" when cla() is called, so autoscale_limits gets confused on the next call to plot(). Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/axes.py Modified: trunk/matplotlib/lib/matplotlib/axes.py =================================================================== --- trunk/matplotlib/lib/matplotlib/axes.py 2007-11-09 20:37:57 UTC (rev 4196) +++ trunk/matplotlib/lib/matplotlib/axes.py 2007-11-09 20:59:47 UTC (rev 4197) @@ -720,6 +720,8 @@ self.xaxis.cla() self.yaxis.cla() + self.set_xscale('linear') + self.set_yscale('linear') self.dataLim.ignore(1) self.callbacks = cbook.CallbackRegistry(('xlim_changed', 'ylim_changed')) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |