@@ -364,8 +364,7 @@ def set_autoscalez_on(self, b):
364
364
"""
365
365
Set whether autoscaling for the z-axis is applied on plot commands
366
366
367
- .. versionadded :: 1.1.0
368
- This function was added, but not tested. Please report any bugs.
367
+ .. versionadded:: 1.1.0
369
368
370
369
Parameters
371
370
----------
@@ -382,8 +381,7 @@ def set_zmargin(self, m):
382
381
383
382
accepts: float in range 0 to 1
384
383
385
- .. versionadded :: 1.1.0
386
- This function was added, but not tested. Please report any bugs.
384
+ .. versionadded:: 1.1.0
387
385
"""
388
386
if m < 0 or m > 1 :
389
387
raise ValueError ("margin must be in range 0 to 1" )
@@ -427,8 +425,7 @@ def margins(self, *margins, x=None, y=None, z=None, tight=True):
427
425
interval will be added to each end of that interval before
428
426
it is used in autoscaling.
429
427
430
- .. versionadded :: 1.1.0
431
- This function was added, but not tested. Please report any bugs.
428
+ .. versionadded:: 1.1.0
432
429
"""
433
430
if margins and x is not None and y is not None and z is not None :
434
431
raise TypeError ('Cannot pass both positional and keyword '
@@ -466,8 +463,7 @@ def autoscale(self, enable=True, axis='both', tight=None):
466
463
three axes. Therefore, 'z' can be passed for *axis*,
467
464
and 'both' applies to all three axes.
468
465
469
- .. versionadded :: 1.1.0
470
- This function was added, but not tested. Please report any bugs.
466
+ .. versionadded:: 1.1.0
471
467
"""
472
468
if enable is None :
473
469
scalex = True
@@ -802,60 +798,40 @@ def get_zscale(self):
802
798
803
799
# We need to slightly redefine these to pass scalez=False
804
800
# to their calls of autoscale_view.
801
+
805
802
def set_xscale (self , value , ** kwargs ):
806
803
self .xaxis ._set_scale (value , ** kwargs )
807
804
self .autoscale_view (scaley = False , scalez = False )
808
805
self ._update_transScale ()
809
- if maxes .Axes .set_xscale .__doc__ is not None :
810
- set_xscale .__doc__ = maxes .Axes .set_xscale .__doc__ + """
811
- .. versionadded :: 1.1.0
812
- This function was added, but not tested. Please report any bugs.
813
- """
806
+ self .stale = True
814
807
815
808
def set_yscale (self , value , ** kwargs ):
816
809
self .yaxis ._set_scale (value , ** kwargs )
817
810
self .autoscale_view (scalex = False , scalez = False )
818
811
self ._update_transScale ()
819
812
self .stale = True
820
- if maxes .Axes .set_yscale .__doc__ is not None :
821
- set_yscale .__doc__ = maxes .Axes .set_yscale .__doc__ + """
822
- .. versionadded :: 1.1.0
823
- This function was added, but not tested. Please report any bugs.
824
- """
825
813
826
814
def set_zscale (self , value , ** kwargs ):
815
+ self .zaxis ._set_scale (value , ** kwargs )
816
+ self .autoscale_view (scalex = False , scaley = False )
817
+ self ._update_transScale ()
818
+ self .stale = True
819
+
820
+ set_xscale .__doc__ , set_yscale .__doc__ , set_zscale .__doc__ = map (
827
821
"""
828
- Set the z -axis scale.
822
+ Set the {} -axis scale.
829
823
830
824
Parameters
831
825
----------
832
- value : {"linear", "log", "symlog", "logit", ...}
833
- The axis scale type to apply.
826
+ value : {{"linear"}}
827
+ The axis scale type to apply. 3D axes currently only support
828
+ linear scales; other scales yield nonsensical results.
834
829
835
830
**kwargs
836
- Different keyword arguments are accepted, depending on the scale.
837
- See the respective class keyword arguments:
838
-
839
- - `matplotlib.scale.LinearScale`
840
- - `matplotlib.scale.LogScale`
841
- - `matplotlib.scale.SymmetricalLogScale`
842
- - `matplotlib.scale.LogitScale`
843
-
844
- Notes
845
- -----
846
- Currently, Axes3D objects only supports linear scales.
847
- Other scales may or may not work, and support for these
848
- is improving with each release.
849
-
850
- By default, Matplotlib supports the above mentioned scales.
851
- Additionally, custom scales may be registered using
852
- `matplotlib.scale.register_scale`. These scales may then also
853
- be used here as support is added.
854
- """
855
- self .zaxis ._set_scale (value , ** kwargs )
856
- self .autoscale_view (scalex = False , scaley = False )
857
- self ._update_transScale ()
858
- self .stale = True
831
+ Keyword arguments are nominally forwarded to the scale class, but
832
+ none of them is applicable for linear scales.
833
+ """ .format ,
834
+ ["x" , "y" , "z" ])
859
835
860
836
def set_zticks (self , * args , ** kwargs ):
861
837
"""
@@ -1266,19 +1242,13 @@ def get_zlabel(self):
1266
1242
#### Axes rectangle characteristics
1267
1243
1268
1244
def get_frame_on (self ):
1269
- """
1270
- Get whether the 3D axes panels are drawn.
1271
-
1272
- .. versionadded :: 1.1.0
1273
- """
1245
+ """Get whether the 3D axes panels are drawn."""
1274
1246
return self ._frameon
1275
1247
1276
1248
def set_frame_on (self , b ):
1277
1249
"""
1278
1250
Set whether the 3D axes panels are drawn.
1279
1251
1280
- .. versionadded :: 1.1.0
1281
-
1282
1252
Parameters
1283
1253
----------
1284
1254
b : bool
@@ -1406,10 +1376,7 @@ def tick_params(self, axis='both', **kwargs):
1406
1376
accept settings as if it was like the 'y' axis.
1407
1377
1408
1378
.. note::
1409
- While this function is currently implemented, the core part
1410
- of the Axes3D object may ignore some of these settings.
1411
- Future releases will fix this. Priority will be given to
1412
- those who file bugs.
1379
+ Axes3D currently ignores some of these settings.
1413
1380
1414
1381
.. versionadded :: 1.1.0
1415
1382
This function was added, but not tested. Please report any bugs.
@@ -1973,7 +1940,6 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
1973
1940
.. plot:: gallery/mplot3d/trisurf3d_2.py
1974
1941
1975
1942
.. versionadded:: 1.2.0
1976
- This plotting function was added for the v1.2.0 release.
1977
1943
"""
1978
1944
1979
1945
had_data = self .has_data ()
0 commit comments