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

Skip to content

Commit 8c44ac7

Browse files
committed
Merged revisions 5488 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v0_91_maint ........ r5488 | efiring | 2008-06-12 08:02:18 -1000 (Thu, 12 Jun 2008) | 2 lines Support hold in quiver, contour, contourf ........ svn path=/trunk/matplotlib/; revision=5489
1 parent b761737 commit 8c44ac7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4921,6 +4921,7 @@ def quiverkey(self, *args, **kw):
49214921
quiverkey.__doc__ = mquiver.QuiverKey.quiverkey_doc
49224922

49234923
def quiver(self, *args, **kw):
4924+
if not self._hold: self.cla()
49244925
q = mquiver.Quiver(self, *args, **kw)
49254926
self.add_collection(q, False)
49264927
self.update_datalim(q.XY)
@@ -5578,11 +5579,13 @@ def pcolorfast(self, *args, **kwargs):
55785579
return ret
55795580

55805581
def contour(self, *args, **kwargs):
5582+
if not self._hold: self.cla()
55815583
kwargs['filled'] = False
55825584
return mcontour.ContourSet(self, *args, **kwargs)
55835585
contour.__doc__ = mcontour.ContourSet.contour_doc
55845586

55855587
def contourf(self, *args, **kwargs):
5588+
if not self._hold: self.cla()
55865589
kwargs['filled'] = True
55875590
return mcontour.ContourSet(self, *args, **kwargs)
55885591
contourf.__doc__ = mcontour.ContourSet.contour_doc

0 commit comments

Comments
 (0)