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

Skip to content

Commit 3323909

Browse files
committed
Support hold in quiver, contour, contourf
svn path=/branches/v0_91_maint/; revision=5488
1 parent b9092cb commit 3323909

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/axes.py

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

43364336
def quiver(self, *args, **kw):
4337+
if not self._hold: self.cla()
43374338
q = mquiver.Quiver(self, *args, **kw)
43384339
self.add_collection(q)
43394340
self.update_datalim_numerix(q.X, q.Y)
@@ -5002,11 +5003,13 @@ def pcolorfast(self, *args, **kwargs):
50025003

50035004

50045005
def contour(self, *args, **kwargs):
5006+
if not self._hold: self.cla()
50055007
kwargs['filled'] = False
50065008
return mcontour.ContourSet(self, *args, **kwargs)
50075009
contour.__doc__ = mcontour.ContourSet.contour_doc
50085010

50095011
def contourf(self, *args, **kwargs):
5012+
if not self._hold: self.cla()
50105013
kwargs['filled'] = True
50115014
return mcontour.ContourSet(self, *args, **kwargs)
50125015
contourf.__doc__ = mcontour.ContourSet.contour_doc

0 commit comments

Comments
 (0)