Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 651ee83

Browse files
committed
Add note about log axes
1 parent f6521ec commit 651ee83

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

lib/matplotlib/axes/_axes.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
748748
@docstring.dedent_interpd
749749
def axline(self, slope, intercept, **kwargs):
750750
"""
751-
Add an infinite line across an axis.
751+
Add an infinite straight line across an axis.
752752
753753
Parameters
754754
----------
@@ -771,15 +771,15 @@ def axline(self, slope, intercept, **kwargs):
771771
772772
Examples
773773
--------
774-
* draw a thick red line with slope 1 and y-intercept 0::
774+
* Draw a thick red line with slope 1 and y-intercept 0::
775775
776776
>>> axline(1, 0, linewidth=4, color='r')
777777
778-
* draw a default line with slope 1 and y-intercept 1::
778+
* Draw a default line with slope 1 and y-intercept 1::
779779
780780
>>> axline(1, 1)
781781
782-
* draw a default line with slope 5 and y-intercept 0::
782+
* Draw a default line with slope 5 and y-intercept 0::
783783
784784
>>> axline(5, 0)
785785
@@ -788,6 +788,9 @@ def axline(self, slope, intercept, **kwargs):
788788
axhline : for horizontal lines
789789
axvline : for vertical lines
790790
791+
Notes
792+
-----
793+
Currently this method does not work properly with log scaled axes.
791794
"""
792795

793796
if "transform" in kwargs:

0 commit comments

Comments
 (0)