Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 24eba09

Browse files
committed
fixed a fifo bug for the new transforms infrastructure
svn path=/branches/v0_99_maint/; revision=7517
1 parent 88cddc4 commit 24eba09

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

doc/users/index.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ User's Guide
2222
artists.rst
2323
legend_guide.rst
2424
event_handling.rst
25-
annotations_guide.rst
2625
legend.rst
2726
transforms_tutorial.rst
2827
path_tutorial.rst
28+
annotations_guide.rst
2929
toolkits.rst
3030
screenshots.rst
3131
whats_new.rst

lib/matplotlib/mlab.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1099,8 +1099,9 @@ def add(self, x, y):
10991099
Add scalar *x* and *y* to the queue.
11001100
"""
11011101
if self.dataLim is not None:
1102-
xys = ((x,y),)
1103-
self.dataLim.update(xys, -1) #-1 means use the default ignore setting
1102+
xy = np.asarray([(x,y),])
1103+
self.dataLim.update_from_data_xy(xy, None)
1104+
11041105
ind = self._ind % self._nmax
11051106
#print 'adding to fifo:', ind, x, y
11061107
self._xs[ind] = x
@@ -1144,6 +1145,8 @@ def update_datalim_to_current(self):
11441145
if self.dataLim is None:
11451146
raise ValueError('You must first set the dataLim attr')
11461147
x, y = self.asarrays()
1148+
self.dataLim.update_from_data(x, y, True)
1149+
11471150
self.dataLim.update_numerix(x, y, True)
11481151

11491152
def movavg(x,n):

0 commit comments

Comments
 (0)