@@ -510,41 +510,11 @@ def set_zmargin(self, m):
510
510
511
511
def margins (self , * margins , x = None , y = None , z = None , tight = True ):
512
512
"""
513
- Convenience method to set or retrieve autoscaling margins.
513
+ Set or retrieve autoscaling margins.
514
514
515
- Call signatures::
516
-
517
- margins()
518
-
519
- returns xmargin, ymargin, zmargin
520
-
521
- ::
522
-
523
- margins(margin)
524
-
525
- margins(xmargin, ymargin, zmargin)
526
-
527
- margins(x=xmargin, y=ymargin, z=zmargin)
528
-
529
- margins(..., tight=False)
530
-
531
- All forms above set the xmargin, ymargin and zmargin
532
- parameters. All keyword parameters are optional. A single
533
- positional argument specifies xmargin, ymargin and zmargin.
534
- Passing both positional and keyword arguments for xmargin,
535
- ymargin, and/or zmargin is invalid.
536
-
537
- The *tight* parameter
538
- is passed to :meth:`autoscale_view`, which is executed after
539
- a margin is changed; the default here is *True*, on the
540
- assumption that when margins are specified, no additional
541
- padding to match tick marks is usually desired. Setting
542
- *tight* to *None* will preserve the previous setting.
543
-
544
- Specifying any margin changes only the autoscaling; for example,
545
- if *xmargin* is not None, then *xmargin* times the X data
546
- interval will be added to each end of that interval before
547
- it is used in autoscaling.
515
+ See `.Axes.margins` for full documentation. Because this function
516
+ applies to 3D Axes, it also takes a *z* argument, and returns
517
+ ``(xmargin, ymargin, zmargin)``.
548
518
"""
549
519
if margins and x is not None and y is not None and z is not None :
550
520
raise TypeError ('Cannot pass both positional and keyword '
@@ -577,10 +547,10 @@ def margins(self, *margins, x=None, y=None, z=None, tight=True):
577
547
def autoscale (self , enable = True , axis = 'both' , tight = None ):
578
548
"""
579
549
Convenience method for simple axis view autoscaling.
580
- See :meth:`matplotlib.axes.Axes.autoscale` for full explanation.
581
- Note that this function behaves the same, but for all
582
- three axes. Therefore, 'z' can be passed for *axis*,
583
- and 'both' applies to all three axes.
550
+
551
+ See `.Axes.autoscale` for full documentation. Because this function
552
+ applies to 3D Axes, *axis* can also be set to 'z', and setting *axis*
553
+ to 'both' autoscales all three axes.
584
554
"""
585
555
if enable is None :
586
556
scalex = True
@@ -624,9 +594,9 @@ def autoscale_view(self, tight=None, scalex=True, scaley=True,
624
594
scalez = True ):
625
595
"""
626
596
Autoscale the view limits using the data limits.
627
- See :meth:`matplotlib.axes.Axes.autoscale_view` for documentation.
628
- Note that this function applies to the 3D axes, and as such
629
- adds the *scalez* to the function arguments .
597
+
598
+ See `.Axes.autoscale_view` for full documentation. Because this
599
+ function applies to 3D Axes, it also takes a *scalez* argument .
630
600
"""
631
601
# This method looks at the rectangular volume (see above)
632
602
# of data and decides how to scale the view portal to fit it.
@@ -694,7 +664,7 @@ def set_xlim3d(self, left=None, right=None, emit=True, auto=False,
694
664
"""
695
665
Set 3D x limits.
696
666
697
- See :meth:`matplotlib.axes .Axes.set_xlim` for full documentation.
667
+ See ` .Axes.set_xlim` for full documentation.
698
668
"""
699
669
if right is None and np .iterable (left ):
700
670
left , right = left
@@ -751,7 +721,7 @@ def set_ylim3d(self, bottom=None, top=None, emit=True, auto=False,
751
721
"""
752
722
Set 3D y limits.
753
723
754
- See :meth:`matplotlib.axes .Axes.set_ylim` for full documentation.
724
+ See ` .Axes.set_ylim` for full documentation.
755
725
"""
756
726
if top is None and np .iterable (bottom ):
757
727
bottom , top = bottom
@@ -809,7 +779,7 @@ def set_zlim3d(self, bottom=None, top=None, emit=True, auto=False,
809
779
"""
810
780
Set 3D z limits.
811
781
812
- See :meth:`matplotlib.axes .Axes.set_ylim` for full documentation
782
+ See ` .Axes.set_ylim` for full documentation
813
783
"""
814
784
if top is None and np .iterable (bottom ):
815
785
bottom , top = bottom
@@ -1358,8 +1328,8 @@ def grid(self, visible=True, **kwargs):
1358
1328
.. note::
1359
1329
1360
1330
Currently, this function does not behave the same as
1361
- :meth:`matplotlib .axes.Axes.grid`, but it is intended to
1362
- eventually support that behavior.
1331
+ ` .axes.Axes.grid`, but it is intended to eventually support that
1332
+ behavior.
1363
1333
"""
1364
1334
# TODO: Operate on each axes separately
1365
1335
if len (kwargs ):
@@ -1372,13 +1342,9 @@ def tick_params(self, axis='both', **kwargs):
1372
1342
Convenience method for changing the appearance of ticks and
1373
1343
tick labels.
1374
1344
1375
- See :meth:`matplotlib.axes.Axes.tick_params` for more complete
1376
- documentation.
1377
-
1378
- The only difference is that setting *axis* to 'both' will
1379
- mean that the settings are applied to all three axes. Also,
1380
- the *axis* parameter also accepts a value of 'z', which
1381
- would mean to apply to only the z-axis.
1345
+ See `.Axes.tick_params` for full documentation. Because this function
1346
+ applies to 3D Axes, *axis* can also be set to 'z', and setting *axis*
1347
+ to 'both' autoscales all three axes.
1382
1348
1383
1349
Also, because of how Axes3D objects are drawn very differently
1384
1350
from regular 2D axes, some of these settings may have
@@ -2104,8 +2070,7 @@ def contour(self, X, Y, Z, *args,
2104
2070
Parameters
2105
2071
----------
2106
2072
X, Y, Z : array-like,
2107
- Input data. See `~matplotlib.axes.Axes.contour` for acceptable
2108
- data shapes.
2073
+ Input data. See `.Axes.contour` for supported data shapes.
2109
2074
extend3d : bool, default: False
2110
2075
Whether to extend contour in 3D.
2111
2076
stride : int
@@ -2149,8 +2114,7 @@ def tricontour(self, *args,
2149
2114
Parameters
2150
2115
----------
2151
2116
X, Y, Z : array-like
2152
- Input data. See `~matplotlib.axes.Axes.tricontour` for acceptable
2153
- data shapes.
2117
+ Input data. See `.Axes.tricontour` for supported data shapes.
2154
2118
extend3d : bool, default: False
2155
2119
Whether to extend contour in 3D.
2156
2120
stride : int
@@ -2208,8 +2172,7 @@ def contourf(self, X, Y, Z, *args, zdir='z', offset=None, **kwargs):
2208
2172
Parameters
2209
2173
----------
2210
2174
X, Y, Z : array-like
2211
- Input data. See `~matplotlib.axes.Axes.contourf` for acceptable
2212
- data shapes.
2175
+ Input data. See `.Axes.contourf` for supported data shapes.
2213
2176
zdir : {'x', 'y', 'z'}, default: 'z'
2214
2177
The direction to use.
2215
2178
offset : float, optional
@@ -2247,8 +2210,7 @@ def tricontourf(self, *args, zdir='z', offset=None, **kwargs):
2247
2210
Parameters
2248
2211
----------
2249
2212
X, Y, Z : array-like
2250
- Input data. See `~matplotlib.axes.Axes.tricontourf` for acceptable
2251
- data shapes.
2213
+ Input data. See `.Axes.tricontourf` for supported data shapes.
2252
2214
zdir : {'x', 'y', 'z'}, default: 'z'
2253
2215
The direction to use.
2254
2216
offset : float, optional
@@ -3056,7 +3018,7 @@ def errorbar(self, x, y, z, zerr=None, yerr=None, xerr=None, fmt='',
3056
3018
this. *lims*-arguments may be scalars, or array-likes of the same
3057
3019
length as the errors. To use limits with inverted axes,
3058
3020
`~.Axes.set_xlim` or `~.Axes.set_ylim` must be called before
3059
- :meth: `errorbar`. Note the tricky parameter names: setting e.g.
3021
+ `errorbar`. Note the tricky parameter names: setting e.g.
3060
3022
*ylolims* to True means that the y-value is a *lower* limit of the
3061
3023
True value, so, only an *upward*-pointing arrow will be drawn!
3062
3024
0 commit comments