|
From: <jd...@us...> - 2008-11-23 20:15:39
|
Revision: 6440
http://matplotlib.svn.sourceforge.net/matplotlib/?rev=6440&view=rev
Author: jdh2358
Date: 2008-11-23 20:15:36 +0000 (Sun, 23 Nov 2008)
Log Message:
-----------
fixed datalim update for fill_between
Modified Paths:
--------------
trunk/matplotlib/lib/matplotlib/axes.py
Modified: trunk/matplotlib/lib/matplotlib/axes.py
===================================================================
--- trunk/matplotlib/lib/matplotlib/axes.py 2008-11-23 20:09:08 UTC (rev 6439)
+++ trunk/matplotlib/lib/matplotlib/axes.py 2008-11-23 20:15:36 UTC (rev 6440)
@@ -5559,8 +5559,14 @@
collection = mcoll.PolyCollection(polys, **kwargs)
- self.update_datalim_numerix(x[where], y1[where])
- self.update_datalim_numerix(x[where], y2[where])
+ # now update the datalim and autoscale
+ XY1 = np.array([x[where], y1[where]]).T
+ XY2 = np.array([x[where], y2[where]]).T
+ self.dataLim.update_from_data_xy(XY1, self.ignore_existing_data_limits,
+ updatex=True, updatey=True)
+
+ self.dataLim.update_from_data_xy(XY2, self.ignore_existing_data_limits,
+ updatex=False, updatey=True)
self.add_collection(collection)
self.autoscale_view()
return collection
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|