@@ -801,13 +801,6 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
801801 """
802802 Add a horizontal span (rectangle) across the axis.
803803
804- Call signature::
805-
806- axhspan(ymin, ymax, xmin=0, xmax=1, **kwargs)
807-
808- *y* coords are in data units and *x* coords are in axes (relative
809- 0-1) units.
810-
811804 Draw a horizontal span (rectangle) from *ymin* to *ymax*.
812805 With the default values of *xmin* = 0 and *xmax* = 1, this
813806 always spans the xrange, regardless of the xlim settings, even
@@ -816,22 +809,35 @@ def axhspan(self, ymin, ymax, xmin=0, xmax=1, **kwargs):
816809 0.5=middle, 1.0=right but the *y* location is in data
817810 coordinates.
818811
819- Return value is a :class:`matplotlib.patches.Polygon`
820- instance.
821-
822- Examples:
823-
824- * draw a gray rectangle from *y* = 0.25-0.75 that spans the
825- horizontal extent of the axes::
812+ Parameters
813+ ----------
814+ ymin : float
815+ Lower limit of the horizontal span in data units.
816+ ymax : float
817+ Upper limit of the horizontal span in data units.
818+ xmin : float, optional, default: 0
819+ Lower limit of the vertical span in axes (relative
820+ 0-1) units.
821+ xmax : float, optional, default: 1
822+ Upper limit of the vertical span in axes (relative
823+ 0-1) units.
826824
827- >>> axhspan(0.25, 0.75, facecolor='0.5', alpha=0.5)
825+ Returns
826+ -------
827+ Polygon : `~matplotlib.patches.Polygon`
828828
829- Valid kwargs are :class:`~matplotlib.patches.Polygon` properties:
829+ Other Parameters
830+ ----------------
831+ kwargs : `~matplotlib.patches.Polygon` properties.
830832
831833 %(Polygon)s
832834
833- **Example:**
835+ See Also
836+ --------
837+ axvspan : Add a vertical span (rectangle) across the axes.
834838
839+ Examples
840+ --------
835841 .. plot:: mpl_examples/pylab_examples/axhspan_demo.py
836842
837843 """
0 commit comments