Revision: 7517
          http://matplotlib.svn.sourceforge.net/matplotlib/?rev=7517&view=rev
Author:   jdh2358
Date:     2009-08-22 00:02:15 +0000 (Sat, 22 Aug 2009)

Log Message:
-----------
fixed a fifo bug for the new transforms infrastructure

Modified Paths:
--------------
    branches/v0_99_maint/doc/users/index.rst
    branches/v0_99_maint/lib/matplotlib/mlab.py

Modified: branches/v0_99_maint/doc/users/index.rst
===================================================================
--- branches/v0_99_maint/doc/users/index.rst    2009-08-21 18:35:47 UTC (rev 
7516)
+++ branches/v0_99_maint/doc/users/index.rst    2009-08-22 00:02:15 UTC (rev 
7517)
@@ -22,10 +22,10 @@
     artists.rst
     legend_guide.rst
     event_handling.rst
-    annotations_guide.rst
     legend.rst
     transforms_tutorial.rst
     path_tutorial.rst
+    annotations_guide.rst
     toolkits.rst
     screenshots.rst
     whats_new.rst

Modified: branches/v0_99_maint/lib/matplotlib/mlab.py
===================================================================
--- branches/v0_99_maint/lib/matplotlib/mlab.py 2009-08-21 18:35:47 UTC (rev 
7516)
+++ branches/v0_99_maint/lib/matplotlib/mlab.py 2009-08-22 00:02:15 UTC (rev 
7517)
@@ -1099,8 +1099,9 @@
         Add scalar *x* and *y* to the queue.
         """
         if self.dataLim is not None:
-            xys = ((x,y),)
-            self.dataLim.update(xys, -1) #-1 means use the default ignore 
setting
+            xy = np.asarray([(x,y),])
+            self.dataLim.update_from_data_xy(xy, None)
+
         ind = self._ind % self._nmax
         #print 'adding to fifo:', ind, x, y
         self._xs[ind] = x
@@ -1144,6 +1145,8 @@
         if self.dataLim is None:
             raise ValueError('You must first set the dataLim attr')
         x, y = self.asarrays()
+        self.dataLim.update_from_data(x, y, True)
+
         self.dataLim.update_numerix(x, y, True)
 
 def movavg(x,n):


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/matplotlib-checkins

Reply via email to