Skip to content

Commit 9ed3f89

Browse files
committed
Merged revisions 8610 via svnmerge from
https://matplotlib.svn.sourceforge.net/svnroot/matplotlib/branches/v1_0_maint ........ r8610 | weathergod | 2010-08-01 16:01:25 -0500 (Sun, 01 Aug 2010) | 3 lines Fixed inconsistency with argument handling between 2d and 3d versions of contour. Documentation is fixed as well for 3d versions of contour and contourf. ........ svn path=/trunk/matplotlib/; revision=8611
1 parent 74fc63d commit 9ed3f89

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: lib/mpl_toolkits/mplot3d/axes3d.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -896,7 +896,7 @@ def _3d_extend_contour(self, cset, stride=5):
896896
for col in colls:
897897
self.collections.remove(col)
898898

899-
def contour(self, X, Y, Z, levels=10, **kwargs):
899+
def contour(self, X, Y, Z, *args, **kwargs):
900900
'''
901901
Create a 3D contour plot.
902902
@@ -912,7 +912,7 @@ def contour(self, X, Y, Z, levels=10, **kwargs):
912912
lines on this position in plane normal to zdir
913913
========== ================================================
914914
915-
Other keyword arguments are passed on to
915+
The positional and other keyword arguments are passed on to
916916
:func:`~matplotlib.axes.Axes.contour`
917917
918918
Returns a :class:`~matplotlib.axes.Axes.contour`
@@ -926,7 +926,7 @@ def contour(self, X, Y, Z, levels=10, **kwargs):
926926
had_data = self.has_data()
927927

928928
jX, jY, jZ = art3d.rotate_axes(X, Y, Z, zdir)
929-
cset = Axes.contour(self, jX, jY, jZ, **kwargs)
929+
cset = Axes.contour(self, jX, jY, jZ, *args, **kwargs)
930930

931931
zdir = '-' + zdir
932932
if extend3d:
@@ -948,7 +948,7 @@ def contourf(self, X, Y, Z, *args, **kwargs):
948948
949949
*X*, *Y*, *Z*: data points.
950950
951-
Keyword arguments are passed on to
951+
The positional and keyword arguments are passed on to
952952
:func:`~matplotlib.axes.Axes.contourf`
953953
954954
Returns a :class:`~matplotlib.axes.Axes.contourf`

0 commit comments

Comments
 (0)