Skip to content

Commit 17a8af4

Browse files
committed
errorbar bugfix: plot everything regardless of the Axes hold state
svn path=/branches/v1_0_maint/; revision=8724
1 parent a7704ad commit 17a8af4

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/matplotlib/axes.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -5065,7 +5065,7 @@ def errorbar(self, x, y, yerr=None, xerr=None,
50655065
type as *xerr* and *yerr*.
50665066
50675067
All other keyword arguments are passed on to the plot command for the
5068-
markers, For example, this code makes big red squares with
5068+
markers. For example, this code makes big red squares with
50695069
thick green edges::
50705070
50715071
x,y,yerr = rand(3,10)
@@ -5099,6 +5099,8 @@ def errorbar(self, x, y, yerr=None, xerr=None,
50995099

51005100
self._process_unit_info(xdata=x, ydata=y, kwargs=kwargs)
51015101
if not self._hold: self.cla()
5102+
holdstate = self._hold
5103+
self._hold = True
51025104

51035105
# make sure all the args are iterable; use lists not arrays to
51045106
# preserve units
@@ -5271,6 +5273,7 @@ def xywhere(xs, ys, mask):
52715273
l.set_color(ecolor)
52725274

52735275
self.autoscale_view()
5276+
self._hold = holdstate
52745277
return (l0, caplines, barcols)
52755278

52765279
def boxplot(self, x, notch=0, sym='b+', vert=1, whis=1.5,

0 commit comments

Comments
 (0)