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

Skip to content

Commit 6e85989

Browse files
committed
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=/branches/v1_0_maint/; revision=8610
1 parent 5a1a293 commit 6e85989

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 4 additions & 4 deletions
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)