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

Skip to content

Commit 1e601f7

Browse files
committed
DOC: add example image to axline
1 parent cb6ae77 commit 1e601f7

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

doc/users/next_whats_new/2017-12-08-axline.rst

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,15 @@ New `~.axes.Axes.axline` method
33

44
A new `~.axes.Axes.axline` method has been added to draw infinitely long lines
55
that pass through two points.
6+
7+
8+
9+
.. plot::
10+
:include-source: True
11+
12+
fig, ax = plt.subplots()
13+
14+
ax.axline((.1, .1), slope=5, color='C0', label='by slope')
15+
ax.axline((.1, .2), (.8, .7), color='C3', label='by points')
16+
17+
ax.legend()

0 commit comments

Comments
 (0)