@@ -68,7 +68,7 @@ def __init__(
68
68
The projection type, default 'persp'.
69
69
computed_zorder : bool, default: True
70
70
If True, the draw order is computed based on the average position
71
- of the `.Artist`s along the view direction.
71
+ of the `.Artist`\\ s along the view direction.
72
72
Set to False if you want to manually control the order in which
73
73
Artists are drawn on top of each other using their *zorder*
74
74
attribute. This can be used for fine-tuning if the automatic order
@@ -171,9 +171,6 @@ def convert_zunits(self, z):
171
171
"""
172
172
For artists in an axes, if the zaxis has units support,
173
173
convert *z* using zaxis unit type
174
-
175
- .. versionadded:: 1.2.1
176
-
177
174
"""
178
175
return self .zaxis .convert_units (z )
179
176
@@ -539,28 +536,19 @@ def update_datalim(self, xys, **kwargs):
539
536
def get_autoscale_on (self ):
540
537
"""
541
538
Get whether autoscaling is applied for all axes on plot commands
542
-
543
- .. versionadded:: 1.1.0
544
- This function was added, but not tested. Please report any bugs.
545
539
"""
546
540
return super ().get_autoscale_on () and self .get_autoscalez_on ()
547
541
548
542
def get_autoscalez_on (self ):
549
543
"""
550
544
Get whether autoscaling for the z-axis is applied on plot commands
551
-
552
- .. versionadded:: 1.1.0
553
- This function was added, but not tested. Please report any bugs.
554
545
"""
555
546
return self ._autoscaleZon
556
547
557
548
def set_autoscale_on (self , b ):
558
549
"""
559
550
Set whether autoscaling is applied on plot commands
560
551
561
- .. versionadded:: 1.1.0
562
- This function was added, but not tested. Please report any bugs.
563
-
564
552
Parameters
565
553
----------
566
554
b : bool
@@ -572,8 +560,6 @@ def set_autoscalez_on(self, b):
572
560
"""
573
561
Set whether autoscaling for the z-axis is applied on plot commands
574
562
575
- .. versionadded:: 1.1.0
576
-
577
563
Parameters
578
564
----------
579
565
b : bool
@@ -606,8 +592,6 @@ def set_zmargin(self, m):
606
592
end of that interval before it is used in autoscaling.
607
593
608
594
accepts: float in range 0 to 1
609
-
610
- .. versionadded:: 1.1.0
611
595
"""
612
596
if m < 0 or m > 1 :
613
597
raise ValueError ("margin must be in range 0 to 1" )
@@ -652,8 +636,6 @@ def margins(self, *margins, x=None, y=None, z=None, tight=True):
652
636
if *xmargin* is not None, then *xmargin* times the X data
653
637
interval will be added to each end of that interval before
654
638
it is used in autoscaling.
655
-
656
- .. versionadded:: 1.1.0
657
639
"""
658
640
if margins and x is not None and y is not None and z is not None :
659
641
raise TypeError ('Cannot pass both positional and keyword '
@@ -690,8 +672,6 @@ def autoscale(self, enable=True, axis='both', tight=None):
690
672
Note that this function behaves the same, but for all
691
673
three axes. Therefore, 'z' can be passed for *axis*,
692
674
and 'both' applies to all three axes.
693
-
694
- .. versionadded:: 1.1.0
695
675
"""
696
676
if enable is None :
697
677
scalex = True
@@ -747,13 +727,6 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
747
727
See :meth:`matplotlib.axes.Axes.autoscale_view` for documentation.
748
728
Note that this function applies to the 3D axes, and as such
749
729
adds the *scalez* to the function arguments.
750
-
751
- .. versionchanged:: 1.1.0
752
- Function signature was changed to better match the 2D version.
753
- *tight* is now explicitly a kwarg and placed first.
754
-
755
- .. versionchanged:: 1.2.1
756
- This is now fully functional.
757
730
"""
758
731
# This method looks at the rectangular volume (see above)
759
732
# of data and decides how to scale the view portal to fit it.
@@ -987,20 +960,10 @@ def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False,
987
960
def get_xlim3d (self ):
988
961
return tuple (self .xy_viewLim .intervalx )
989
962
get_xlim3d .__doc__ = maxes .Axes .get_xlim .__doc__
990
- if get_xlim3d .__doc__ is not None :
991
- get_xlim3d .__doc__ += """
992
- .. versionchanged:: 1.1.0
993
- This function now correctly refers to the 3D x-limits
994
- """
995
963
996
964
def get_ylim3d (self ):
997
965
return tuple (self .xy_viewLim .intervaly )
998
966
get_ylim3d .__doc__ = maxes .Axes .get_ylim .__doc__
999
- if get_ylim3d .__doc__ is not None :
1000
- get_ylim3d .__doc__ += """
1001
- .. versionchanged:: 1.1.0
1002
- This function now correctly refers to the 3D y-limits.
1003
- """
1004
967
1005
968
def get_zlim3d (self ):
1006
969
"""Get 3D z limits."""
@@ -1377,9 +1340,6 @@ def set_zlabel(self, zlabel, fontdict=None, labelpad=None, **kwargs):
1377
1340
def get_zlabel (self ):
1378
1341
"""
1379
1342
Get the z-label text string.
1380
-
1381
- .. versionadded:: 1.1.0
1382
- This function was added, but not tested. Please report any bugs.
1383
1343
"""
1384
1344
label = self .zaxis .get_label ()
1385
1345
return label .get_text ()
@@ -1410,8 +1370,6 @@ def grid(self, b=True, **kwargs):
1410
1370
Currently, this function does not behave the same as
1411
1371
:meth:`matplotlib.axes.Axes.grid`, but it is intended to
1412
1372
eventually support that behavior.
1413
-
1414
- .. versionadded:: 1.1.0
1415
1373
"""
1416
1374
# TODO: Operate on each axes separately
1417
1375
if len (kwargs ):
@@ -1429,9 +1387,6 @@ def locator_params(self, axis='both', tight=None, **kwargs):
1429
1387
parameters being set for all three axes. Also, *axis*
1430
1388
can also take a value of 'z' to apply parameters to the
1431
1389
z axis.
1432
-
1433
- .. versionadded:: 1.1.0
1434
- This function was added, but not tested. Please report any bugs.
1435
1390
"""
1436
1391
_x = axis in ['x' , 'both' ]
1437
1392
_y = axis in ['y' , 'both' ]
@@ -1465,8 +1420,6 @@ def tick_params(self, axis='both', **kwargs):
1465
1420
1466
1421
.. note::
1467
1422
Axes3D currently ignores some of these settings.
1468
-
1469
- .. versionadded:: 1.1.0
1470
1423
"""
1471
1424
_api .check_in_list (['x' , 'y' , 'z' , 'both' ], axis = axis )
1472
1425
if axis in ['x' , 'y' , 'both' ]:
@@ -1484,27 +1437,20 @@ def tick_params(self, axis='both', **kwargs):
1484
1437
def invert_zaxis (self ):
1485
1438
"""
1486
1439
Invert the z-axis.
1487
-
1488
- .. versionadded:: 1.1.0
1489
- This function was added, but not tested. Please report any bugs.
1490
1440
"""
1491
1441
bottom , top = self .get_zlim ()
1492
1442
self .set_zlim (top , bottom , auto = None )
1493
1443
1494
1444
def zaxis_inverted (self ):
1495
1445
"""
1496
1446
Returns True if the z-axis is inverted.
1497
-
1498
- .. versionadded:: 1.1.0
1499
1447
"""
1500
1448
bottom , top = self .get_zlim ()
1501
1449
return top < bottom
1502
1450
1503
1451
def get_zbound (self ):
1504
1452
"""
1505
1453
Return the lower and upper z-axis bounds, in increasing order.
1506
-
1507
- .. versionadded:: 1.1.0
1508
1454
"""
1509
1455
bottom , top = self .get_zlim ()
1510
1456
if bottom < top :
@@ -1518,8 +1464,6 @@ def set_zbound(self, lower=None, upper=None):
1518
1464
1519
1465
This method will honor axes inversion regardless of parameter order.
1520
1466
It will not change the autoscaling setting (`.get_autoscalez_on()`).
1521
-
1522
- .. versionadded:: 1.1.0
1523
1467
"""
1524
1468
if upper is None and np .iterable (lower ):
1525
1469
lower , upper = lower
@@ -1627,8 +1571,6 @@ def plot_surface(self, X, Y, Z, *args, norm=None, vmin=None,
1627
1571
data is larger, it will be downsampled (by slicing) to these
1628
1572
numbers of points. Defaults to 50.
1629
1573
1630
- .. versionadded:: 2.0
1631
-
1632
1574
rstride, cstride : int
1633
1575
Downsampling stride in each direction. These arguments are
1634
1576
mutually exclusive with *rcount* and *ccount*. If only one of
@@ -1885,8 +1827,6 @@ def plot_wireframe(self, X, Y, Z, *args, **kwargs):
1885
1827
not sampled in the corresponding direction, producing a 3D line
1886
1828
plot rather than a wireframe plot. Defaults to 50.
1887
1829
1888
- .. versionadded:: 2.0
1889
-
1890
1830
rstride, cstride : int
1891
1831
Downsampling stride in each direction. These arguments are
1892
1832
mutually exclusive with *rcount* and *ccount*. If only one of
@@ -2033,8 +1973,6 @@ def plot_trisurf(self, *args, color=None, norm=None, vmin=None, vmax=None,
2033
1973
--------
2034
1974
.. plot:: gallery/mplot3d/trisurf3d.py
2035
1975
.. plot:: gallery/mplot3d/trisurf3d_2.py
2036
-
2037
- .. versionadded:: 1.2.0
2038
1976
"""
2039
1977
2040
1978
had_data = self .has_data ()
@@ -2196,9 +2134,6 @@ def tricontour(self, *args,
2196
2134
"""
2197
2135
Create a 3D contour plot.
2198
2136
2199
- .. versionchanged:: 1.3.0
2200
- Added support for custom triangulations
2201
-
2202
2137
.. note::
2203
2138
This method currently produces incorrect output due to a
2204
2139
longstanding bug in 3D PolyCollection rendering.
@@ -2263,11 +2198,6 @@ def contourf(self, X, Y, Z, *args, zdir='z', offset=None, **kwargs):
2263
2198
Returns
2264
2199
-------
2265
2200
matplotlib.contour.QuadContourSet
2266
-
2267
- Notes
2268
- -----
2269
- .. versionadded:: 1.1.0
2270
- The *zdir* and *offset* parameters.
2271
2201
"""
2272
2202
had_data = self .has_data ()
2273
2203
@@ -2304,13 +2234,6 @@ def tricontourf(self, *args, zdir='z', offset=None, **kwargs):
2304
2234
Returns
2305
2235
-------
2306
2236
matplotlib.tri.tricontour.TriContourSet
2307
-
2308
- Notes
2309
- -----
2310
- .. versionadded:: 1.1.0
2311
- The *zdir* and *offset* parameters.
2312
- .. versionchanged:: 1.3.0
2313
- Added support for custom triangulations
2314
2237
"""
2315
2238
had_data = self .has_data ()
2316
2239
@@ -2818,8 +2741,6 @@ def voxels(self, *args, facecolors=None, edgecolors=None, shade=True,
2818
2741
``filled[0, 0, 0]`` placed with its lower corner at the origin.
2819
2742
Occluded faces are not plotted.
2820
2743
2821
- .. versionadded:: 2.1
2822
-
2823
2744
Parameters
2824
2745
----------
2825
2746
filled : 3D np.array of bool
@@ -2854,13 +2775,9 @@ def voxels(self, *args, facecolors=None, edgecolors=None, shade=True,
2854
2775
Whether to shade the facecolors. Shading is always disabled when
2855
2776
*cmap* is specified.
2856
2777
2857
- .. versionadded:: 3.1
2858
-
2859
2778
lightsource : `~matplotlib.colors.LightSource`
2860
2779
The lightsource to use when *shade* is True.
2861
2780
2862
- .. versionadded:: 3.1
2863
-
2864
2781
**kwargs
2865
2782
Additional keyword arguments to pass onto
2866
2783
`~mpl_toolkits.mplot3d.art3d.Poly3DCollection`.
0 commit comments