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

Skip to content

Commit dc4603d

Browse files
committed
Don't explicitly list scalez kwarg in Axes3D constructor and docs.
1) We actually don't even support non-linear scales in Axes3D. 2) This is consistent with 2D axes, for which the scales are just listed in the properties table.
1 parent 1e043bc commit dc4603d

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

lib/mpl_toolkits/mplot3d/axes3d.py

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,10 +48,9 @@ class Axes3D(Axes):
4848
name = '3d'
4949
_shared_z_axes = cbook.Grouper()
5050

51-
@docstring.dedent_interpd
5251
def __init__(
5352
self, fig, rect=None, *args,
54-
azim=-60, elev=30, zscale=None, sharez=None, proj_type='persp',
53+
azim=-60, elev=30, sharez=None, proj_type='persp',
5554
**kwargs):
5655
"""
5756
Parameters
@@ -64,13 +63,14 @@ def __init__(
6463
Azimuthal viewing angle, defaults to -60.
6564
elev : float, optional
6665
Elevation viewing angle, defaults to 30.
67-
zscale : %(scale_type)s, optional
68-
The z scale. Note that currently, only a linear scale is
69-
supported.
7066
sharez : Axes3D, optional
7167
Other axes to share z-limits with.
7268
proj_type : {'persp', 'ortho'}
7369
The projection type, default 'persp'.
70+
**kwargs
71+
Other optional keyword arguments:
72+
73+
%(Axes3D)s
7474
7575
Notes
7676
-----
@@ -110,9 +110,6 @@ def __init__(
110110
# func used to format z -- fall back on major formatters
111111
self.fmt_zdata = None
112112

113-
if zscale is not None:
114-
self.set_zscale(zscale)
115-
116113
if self.zaxis is not None:
117114
self._zcid = self.zaxis.callbacks.connect(
118115
'units finalize', lambda: self._on_units_changed(scalez=True))
@@ -2876,6 +2873,10 @@ def permutation_matrices(n):
28762873
return polygons
28772874

28782875

2876+
docstring.interpd.update(Axes3D=artist.kwdoc(Axes3D))
2877+
docstring.dedent_interpd(Axes3D.__init__)
2878+
2879+
28792880
def get_test_data(delta=0.05):
28802881
'''
28812882
Return a tuple X, Y, Z with a test data set.

0 commit comments

Comments
 (0)