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

Skip to content

Commit 49da75e

Browse files
committed
Add note about log axes
1 parent d827d91 commit 49da75e

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
@@ -621,7 +621,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
621621
@docstring.dedent_interpd
622622
def axline(self, slope, intercept, **kwargs):
623623
"""
624-
Add an infinite line across an axis.
624+
Add an infinite straight line across an axis.
625625
626626
Parameters
627627
----------
@@ -644,15 +644,15 @@ def axline(self, slope, intercept, **kwargs):
644644
645645
Examples
646646
--------
647-
* draw a thick red line with slope 1 and y-intercept 0::
647+
* Draw a thick red line with slope 1 and y-intercept 0::
648648
649649
>>> axline(1, 0, linewidth=4, color='r')
650650
651-
* draw a default line with slope 1 and y-intercept 1::
651+
* Draw a default line with slope 1 and y-intercept 1::
652652
653653
>>> axline(1, 1)
654654
655-
* draw a default line with slope 5 and y-intercept 0::
655+
* Draw a default line with slope 5 and y-intercept 0::
656656
657657
>>> axline(5, 0)
658658
@@ -661,6 +661,9 @@ def axline(self, slope, intercept, **kwargs):
661661
axhline : for horizontal lines
662662
axvline : for vertical lines
663663
664+
Notes
665+
-----
666+
Currently this method does not work properly with log scaled axes.
664667
"""
665668

666669
if "transform" in kwargs:

0 commit comments

Comments
 (0)