@@ -365,8 +365,7 @@ def set_autoscalez_on(self, b):
365
365
"""
366
366
Set whether autoscaling for the z-axis is applied on plot commands
367
367
368
- .. versionadded :: 1.1.0
369
- This function was added, but not tested. Please report any bugs.
368
+ .. versionadded:: 1.1.0
370
369
371
370
Parameters
372
371
----------
@@ -383,8 +382,7 @@ def set_zmargin(self, m):
383
382
384
383
accepts: float in range 0 to 1
385
384
386
- .. versionadded :: 1.1.0
387
- This function was added, but not tested. Please report any bugs.
385
+ .. versionadded:: 1.1.0
388
386
"""
389
387
if m < 0 or m > 1 :
390
388
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):
428
426
interval will be added to each end of that interval before
429
427
it is used in autoscaling.
430
428
431
- .. versionadded :: 1.1.0
432
- This function was added, but not tested. Please report any bugs.
429
+ .. versionadded:: 1.1.0
433
430
"""
434
431
if margins and x is not None and y is not None and z is not None :
435
432
raise TypeError ('Cannot pass both positional and keyword '
@@ -467,8 +464,7 @@ def autoscale(self, enable=True, axis='both', tight=None):
467
464
three axes. Therefore, 'z' can be passed for *axis*,
468
465
and 'both' applies to all three axes.
469
466
470
- .. versionadded :: 1.1.0
471
- This function was added, but not tested. Please report any bugs.
467
+ .. versionadded:: 1.1.0
472
468
"""
473
469
if enable is None :
474
470
scalex = True
@@ -795,60 +791,40 @@ def get_zscale(self):
795
791
796
792
# We need to slightly redefine these to pass scalez=False
797
793
# to their calls of autoscale_view.
794
+
798
795
def set_xscale (self , value , ** kwargs ):
799
796
self .xaxis ._set_scale (value , ** kwargs )
800
797
self .autoscale_view (scaley = False , scalez = False )
801
798
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
807
800
808
801
def set_yscale (self , value , ** kwargs ):
809
802
self .yaxis ._set_scale (value , ** kwargs )
810
803
self .autoscale_view (scalex = False , scalez = False )
811
804
self ._update_transScale ()
812
805
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
- """
818
806
819
807
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 (
820
814
"""
821
- Set the z -axis scale.
815
+ Set the {} -axis scale.
822
816
823
817
Parameters
824
818
----------
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.
827
822
828
823
**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" ])
852
828
853
829
def set_zticks (self , * args , ** kwargs ):
854
830
"""
@@ -1245,19 +1221,13 @@ def get_zlabel(self):
1245
1221
# Axes rectangle characteristics
1246
1222
1247
1223
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."""
1253
1225
return self ._frameon
1254
1226
1255
1227
def set_frame_on (self , b ):
1256
1228
"""
1257
1229
Set whether the 3D axes panels are drawn.
1258
1230
1259
- .. versionadded :: 1.1.0
1260
-
1261
1231
Parameters
1262
1232
----------
1263
1233
b : bool
@@ -1327,10 +1297,7 @@ def tick_params(self, axis='both', **kwargs):
1327
1297
accept settings as if it was like the 'y' axis.
1328
1298
1329
1299
.. 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.
1334
1301
1335
1302
.. versionadded :: 1.1.0
1336
1303
"""
@@ -1886,7 +1853,6 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
1886
1853
.. plot:: gallery/mplot3d/trisurf3d_2.py
1887
1854
1888
1855
.. versionadded:: 1.2.0
1889
- This plotting function was added for the v1.2.0 release.
1890
1856
"""
1891
1857
1892
1858
had_data = self .has_data ()
0 commit comments