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

Skip to content

Commit f967c8b

Browse files
dstansbyanntzer
authored andcommitted
Small doc fixes
1 parent a6198af commit f967c8b

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
New `axline` method
22
-------------------
33

4-
A new `axline` method has been added to draw infinitely long lines that pass
5-
through two points.
4+
A new `~.axes.Axes.axline` method has been added to draw infinitely long lines
5+
that pass through two points.

lib/matplotlib/axes/_axes.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -816,6 +816,7 @@ def axhline(self, y=0, xmin=0, xmax=1, **kwargs):
816816
--------
817817
hlines : Add horizontal lines in data coordinates.
818818
axhspan : Add a horizontal span (rectangle) across the axis.
819+
axhline : Add a line with an arbitrary slope.
819820
820821
Examples
821822
--------
@@ -899,6 +900,7 @@ def axvline(self, x=0, ymin=0, ymax=1, **kwargs):
899900
--------
900901
vlines : Add vertical lines in data coordinates.
901902
axvspan : Add a vertical span (rectangle) across the axis.
903+
axline : Add a line with an abritrary slope.
902904
"""
903905

904906
if "transform" in kwargs:
@@ -942,7 +944,7 @@ def axline(self, xy1, xy2, **kwargs):
942944
943945
Examples
944946
--------
945-
* Draw a thick red line passing through (0, 0) with a gradient of 1::
947+
Draw a thick red line passing through (0, 0) and (1, 1)::
946948
947949
>>> axline((0, 0), (1, 1), linewidth=4, color='r')
948950

0 commit comments

Comments
 (0)