@@ -719,7 +719,25 @@ def get_ylim(self):
719719 return tuple (self .xy_viewLim .intervaly )
720720
721721 def get_zlim (self ):
722- """Get 3D z limits."""
722+ """
723+ Return the 3D z-axis view limits.
724+
725+ Returns
726+ -------
727+ left, right : (float, float)
728+ The current z-axis limits in data coordinates.
729+
730+ See Also
731+ --------
732+ set_zlim
733+ set_zbound, get_zbound
734+ invert_zaxis, zaxis_inverted
735+
736+ Notes
737+ -----
738+ The z-axis may be inverted, in which case the *left* value will
739+ be greater than the *right* value.
740+ """
723741 return tuple (self .zz_viewLim .intervalx )
724742
725743 get_zscale = _axis_method_wrapper ("zaxis" , "get_scale" )
@@ -1475,6 +1493,12 @@ def tick_params(self, axis='both', **kwargs):
14751493 def invert_zaxis (self ):
14761494 """
14771495 Invert the z-axis.
1496+
1497+ See Also
1498+ --------
1499+ zaxis_inverted
1500+ get_zlim, set_zlim
1501+ get_zbound, set_zbound
14781502 """
14791503 bottom , top = self .get_zlim ()
14801504 self .set_zlim (top , bottom , auto = None )
@@ -1484,6 +1508,12 @@ def invert_zaxis(self):
14841508 def get_zbound (self ):
14851509 """
14861510 Return the lower and upper z-axis bounds, in increasing order.
1511+
1512+ See Also
1513+ --------
1514+ set_zbound
1515+ get_zlim, set_zlim
1516+ invert_zaxis, zaxis_inverted
14871517 """
14881518 bottom , top = self .get_zlim ()
14891519 if bottom < top :
@@ -1497,6 +1527,18 @@ def set_zbound(self, lower=None, upper=None):
14971527
14981528 This method will honor axes inversion regardless of parameter order.
14991529 It will not change the autoscaling setting (`.get_autoscalez_on()`).
1530+
1531+ Parameters
1532+ ----------
1533+ lower, upper : float or None
1534+ The lower and upper bounds. If *None*, the respective axis bound
1535+ is not modified.
1536+
1537+ See Also
1538+ --------
1539+ get_zbound
1540+ get_zlim, set_zlim
1541+ invert_zaxis, zaxis_inverted
15001542 """
15011543 if upper is None and np .iterable (lower ):
15021544 lower , upper = lower
@@ -1513,11 +1555,24 @@ def set_zbound(self, lower=None, upper=None):
15131555
15141556 def text (self , x , y , z , s , zdir = None , ** kwargs ):
15151557 """
1516- Add text to the plot .
1558+ Add the text *s* to the 3D Axes at location *x*, *y*, *z* in data coordinates .
15171559
1518- Keyword arguments will be passed on to `.Axes.text`, except for the
1519- *zdir* keyword, which sets the direction to be used as the z
1520- direction.
1560+ Parameters
1561+ ----------
1562+ x, y, z : float
1563+ The position to place the text.
1564+ s : str
1565+ The text.
1566+ zdir : {'x', 'y', 'z', 3-tuple}, optional
1567+ The direction to be used as the z-direction. Default: 'z'.
1568+ See `.get_dir_vector` for a description of the values.
1569+ **kwargs
1570+ Other arguments are forwarded to `matplotlib.axes.Axes.text`.
1571+
1572+ Returns
1573+ -------
1574+ `.Text3D`
1575+ The created `.Text3D` instance.
15211576 """
15221577 text = super ().text (x , y , s , ** kwargs )
15231578 art3d .text_2d_to_3d (text , z , zdir )
0 commit comments