Revision: 5385 http://matplotlib.svn.sourceforge.net/matplotlib/?rev=5385&view=rev Author: jdh2358 Date: 2008-06-04 11:17:23 -0700 (Wed, 04 Jun 2008)
Log Message: ----------- fixed some bugs introduced in the xaxis_date fix Modified Paths: -------------- branches/v0_91_maint/lib/matplotlib/axes.py Modified: branches/v0_91_maint/lib/matplotlib/axes.py =================================================================== --- branches/v0_91_maint/lib/matplotlib/axes.py 2008-06-04 18:15:05 UTC (rev 5384) +++ branches/v0_91_maint/lib/matplotlib/axes.py 2008-06-04 18:17:23 UTC (rev 5385) @@ -1174,9 +1174,8 @@ # limits and set the bound to be the bounds of the xydata. # Otherwise, it will compute the bounds of it's current data # and the data in xydata + if iterable(xys) and not len(xys): return xys = npy.asarray(xys) - - self.dataLim.update_numerix_xy(xys, -1) @@ -1187,6 +1186,7 @@ # Otherwise, it will compute the bounds of it's current data # and the data in xydata #print type(x), type(y) + if iterable(x) and not len(x): return self.dataLim.update_numerix(x, y, -1) def _get_verts_in_data_coords(self, trans, xys): @@ -1869,15 +1869,16 @@ dmin, dmax = self.convert_xunits([dmin, dmax]) self.viewLim.intervalx().set_bounds(dmin, dmax) - self.viewLim.intervalx().set_bounds(dmin, dmax) + self.dataLim.intervalx().set_bounds(dmin, dmax) locator = self.xaxis.get_major_locator() if not isinstance(locator, mdates.DateLocator): locator = mdates.AutoDateLocator(tz) self.xaxis.set_major_locator(locator) - locator.refresh() + locator.refresh() + formatter = self.xaxis.get_major_formatter() if not isinstance(formatter, mdates.DateFormatter): formatter = mdates.AutoDateFormatter(locator) @@ -1894,19 +1895,20 @@ # have been updated than the ignore setting dmax = today = datetime.date.today() dmin = today-datetime.timedelta(days=10) - self._process_unit_info(xdata=(dmin, dmax)) + self._process_unit_info(ydata=(dmin, dmax)) - dmin, dmax = self.convert_xunits([dmin, dmax]) + dmin, dmax = self.convert_yunits([dmin, dmax]) self.viewLim.intervaly().set_bounds(dmin, dmax) - self.viewLim.intervaly().set_bounds(dmin, dmax) + self.dataLim.intervaly().set_bounds(dmin, dmax) locator = self.yaxis.get_major_locator() if not isinstance(locator, mdates.DateLocator): locator = mdates.AutoDateLocator(tz) self.yaxis.set_major_locator(locator) - locator.refresh() + locator.refresh() + formatter = self.xaxis.get_major_formatter() if not isinstance(formatter, mdates.DateFormatter): formatter = mdates.AutoDateFormatter(locator) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. ------------------------------------------------------------------------- Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php _______________________________________________ Matplotlib-checkins mailing list Matplotlib-checkins@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins