From: <ef...@us...> - 2008-02-05 07:34:41
|
Revision: 4939 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=4939&view=rev Author: efiring Date: 2008-02-04 23:34:39 -0800 (Mon, 04 Feb 2008) Log Message: ----------- Bugfix in contour auto level selection via locator Modified Paths: -------------- trunk/matplotlib/lib/matplotlib/contour.py Modified: trunk/matplotlib/lib/matplotlib/contour.py =================================================================== --- trunk/matplotlib/lib/matplotlib/contour.py 2008-02-04 19:53:07 UTC (rev 4938) +++ trunk/matplotlib/lib/matplotlib/contour.py 2008-02-05 07:34:39 UTC (rev 4939) @@ -514,12 +514,11 @@ self.locator = ticker.LogLocator() else: self.locator = ticker.MaxNLocator(N+1) - self.locator.create_dummy_axis() - locator = self.locator + self.locator.create_dummy_axis() zmax = self.zmax zmin = self.zmin - locator.set_bounds(zmin, zmax) - lev = locator() + self.locator.set_bounds(zmin, zmax) + lev = self.locator() zmargin = (zmax - zmin) * 0.000001 # so z < (zmax + zmargin) if zmax >= lev[-1]: lev[-1] += zmargin This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |