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

Skip to content

Commit 5a9d580

Browse files
committed
contour: refactoring by Ian Thomas to facilitate new tricontour functionality
svn path=/trunk/matplotlib/; revision=8232
1 parent 3db6512 commit 5a9d580

2 files changed

Lines changed: 365 additions & 215 deletions

File tree

lib/matplotlib/axes.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6896,14 +6896,14 @@ def pcolorfast(self, *args, **kwargs):
68966896
def contour(self, *args, **kwargs):
68976897
if not self._hold: self.cla()
68986898
kwargs['filled'] = False
6899-
return mcontour.ContourSet(self, *args, **kwargs)
6900-
contour.__doc__ = mcontour.ContourSet.contour_doc
6899+
return mcontour.QuadContourSet(self, *args, **kwargs)
6900+
contour.__doc__ = mcontour.QuadContourSet.contour_doc
69016901

69026902
def contourf(self, *args, **kwargs):
69036903
if not self._hold: self.cla()
69046904
kwargs['filled'] = True
6905-
return mcontour.ContourSet(self, *args, **kwargs)
6906-
contourf.__doc__ = mcontour.ContourSet.contour_doc
6905+
return mcontour.QuadContourSet(self, *args, **kwargs)
6906+
contourf.__doc__ = mcontour.QuadContourSet.contour_doc
69076907

69086908
def clabel(self, CS, *args, **kwargs):
69096909
return CS.clabel(*args, **kwargs)

0 commit comments

Comments
 (0)