@@ -754,6 +754,15 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
754
754
Returns
755
755
-------
756
756
`~matplotlib.lines.Line2D`
757
+ A `.Line2D` specified via two points ``(xmin, y)``, ``(xmax, y)``.
758
+ Its transform is set such that *x* is in
759
+ :ref:`axes coordinates <coordinate-systems>` and *y* is in
760
+ :ref:`data coordinates <coordinate-systems>`.
761
+
762
+ This is still a generic line and the horizontal character is only
763
+ realized by using identical *y* values for both points. Thus,
764
+ if you want to change the *y* value later, you have to provide two
765
+ values ``line.set_ydata([3, 3])``.
757
766
758
767
Other Parameters
759
768
----------------
@@ -828,6 +837,15 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
828
837
Returns
829
838
-------
830
839
`~matplotlib.lines.Line2D`
840
+ A `.Line2D` specified via two points ``(x, ymin)``, ``(x, ymax)``.
841
+ Its transform is set such that *x* is in
842
+ :ref:`data coordinates <coordinate-systems>` and *y* is in
843
+ :ref:`axes coordinates <coordinate-systems>`.
844
+
845
+ This is still a generic line and the vertical character is only
846
+ realized by using identical *x* values for both points. Thus,
847
+ if you want to change the *x* value later, you have to provide two
848
+ values ``line.set_xdata([3, 3])``.
831
849
832
850
Other Parameters
833
851
----------------
0 commit comments