@@ -365,8 +365,7 @@ def set_autoscalez_on(self, b):
365365 """
366366 Set whether autoscaling for the z-axis is applied on plot commands
367367
368- .. versionadded :: 1.1.0
369- This function was added, but not tested. Please report any bugs.
368+ .. versionadded:: 1.1.0
370369
371370 Parameters
372371 ----------
@@ -383,8 +382,7 @@ def set_zmargin(self, m):
383382
384383 accepts: float in range 0 to 1
385384
386- .. versionadded :: 1.1.0
387- This function was added, but not tested. Please report any bugs.
385+ .. versionadded:: 1.1.0
388386 """
389387 if m < 0 or m > 1 :
390388 raise ValueError ("margin must be in range 0 to 1" )
@@ -428,8 +426,7 @@ def margins(self, *margins, x=None, y=None, z=None, tight=True):
428426 interval will be added to each end of that interval before
429427 it is used in autoscaling.
430428
431- .. versionadded :: 1.1.0
432- This function was added, but not tested. Please report any bugs.
429+ .. versionadded:: 1.1.0
433430 """
434431 if margins and x is not None and y is not None and z is not None :
435432 raise TypeError ('Cannot pass both positional and keyword '
@@ -467,8 +464,7 @@ def autoscale(self, enable=True, axis='both', tight=None):
467464 three axes. Therefore, 'z' can be passed for *axis*,
468465 and 'both' applies to all three axes.
469466
470- .. versionadded :: 1.1.0
471- This function was added, but not tested. Please report any bugs.
467+ .. versionadded:: 1.1.0
472468 """
473469 if enable is None :
474470 scalex = True
@@ -795,60 +791,40 @@ def get_zscale(self):
795791
796792 # We need to slightly redefine these to pass scalez=False
797793 # to their calls of autoscale_view.
794+
798795 def set_xscale (self , value , ** kwargs ):
799796 self .xaxis ._set_scale (value , ** kwargs )
800797 self .autoscale_view (scaley = False , scalez = False )
801798 self ._update_transScale ()
802- if maxes .Axes .set_xscale .__doc__ is not None :
803- set_xscale .__doc__ = maxes .Axes .set_xscale .__doc__ + """
804- .. versionadded :: 1.1.0
805- This function was added, but not tested. Please report any bugs.
806- """
799+ self .stale = True
807800
808801 def set_yscale (self , value , ** kwargs ):
809802 self .yaxis ._set_scale (value , ** kwargs )
810803 self .autoscale_view (scalex = False , scalez = False )
811804 self ._update_transScale ()
812805 self .stale = True
813- if maxes .Axes .set_yscale .__doc__ is not None :
814- set_yscale .__doc__ = maxes .Axes .set_yscale .__doc__ + """
815- .. versionadded :: 1.1.0
816- This function was added, but not tested. Please report any bugs.
817- """
818806
819807 def set_zscale (self , value , ** kwargs ):
808+ self .zaxis ._set_scale (value , ** kwargs )
809+ self .autoscale_view (scalex = False , scaley = False )
810+ self ._update_transScale ()
811+ self .stale = True
812+
813+ set_xscale .__doc__ , set_yscale .__doc__ , set_zscale .__doc__ = map (
820814 """
821- Set the z -axis scale.
815+ Set the {} -axis scale.
822816
823817 Parameters
824818 ----------
825- value : {"linear", "log", "symlog", "logit", ...}
826- The axis scale type to apply.
819+ value : {{"linear"}}
820+ The axis scale type to apply. 3D axes currently only support
821+ linear scales; other scales yield nonsensical results.
827822
828823 **kwargs
829- Different keyword arguments are accepted, depending on the scale.
830- See the respective class keyword arguments:
831-
832- - `matplotlib.scale.LinearScale`
833- - `matplotlib.scale.LogScale`
834- - `matplotlib.scale.SymmetricalLogScale`
835- - `matplotlib.scale.LogitScale`
836-
837- Notes
838- -----
839- Currently, Axes3D objects only supports linear scales.
840- Other scales may or may not work, and support for these
841- is improving with each release.
842-
843- By default, Matplotlib supports the above mentioned scales.
844- Additionally, custom scales may be registered using
845- `matplotlib.scale.register_scale`. These scales may then also
846- be used here as support is added.
847- """
848- self .zaxis ._set_scale (value , ** kwargs )
849- self .autoscale_view (scalex = False , scaley = False )
850- self ._update_transScale ()
851- self .stale = True
824+ Keyword arguments are nominally forwarded to the scale class, but
825+ none of them is applicable for linear scales.
826+ """ .format ,
827+ ["x" , "y" , "z" ])
852828
853829 def set_zticks (self , * args , ** kwargs ):
854830 """
@@ -1245,19 +1221,13 @@ def get_zlabel(self):
12451221 # Axes rectangle characteristics
12461222
12471223 def get_frame_on (self ):
1248- """
1249- Get whether the 3D axes panels are drawn.
1250-
1251- .. versionadded :: 1.1.0
1252- """
1224+ """Get whether the 3D axes panels are drawn."""
12531225 return self ._frameon
12541226
12551227 def set_frame_on (self , b ):
12561228 """
12571229 Set whether the 3D axes panels are drawn.
12581230
1259- .. versionadded :: 1.1.0
1260-
12611231 Parameters
12621232 ----------
12631233 b : bool
@@ -1327,10 +1297,7 @@ def tick_params(self, axis='both', **kwargs):
13271297 accept settings as if it was like the 'y' axis.
13281298
13291299 .. note::
1330- While this function is currently implemented, the core part
1331- of the Axes3D object may ignore some of these settings.
1332- Future releases will fix this. Priority will be given to
1333- those who file bugs.
1300+ Axes3D currently ignores some of these settings.
13341301
13351302 .. versionadded :: 1.1.0
13361303 """
@@ -1886,7 +1853,6 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
18861853 .. plot:: gallery/mplot3d/trisurf3d_2.py
18871854
18881855 .. versionadded:: 1.2.0
1889- This plotting function was added for the v1.2.0 release.
18901856 """
18911857
18921858 had_data = self .has_data ()
0 commit comments