Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 18e2544

Browse filesBrowse files
authored
Merge pull request #17054 from timhoffm/axline-example
Use slope in axline example
2 parents 5c9d229 + f716990 commit 18e2544
Copy full SHA for 18e2544

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎examples/pyplots/axline.py

Copy file name to clipboardExpand all lines: examples/pyplots/axline.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
plt.axhline(y=0.5, color="black", linestyle=":")
2121
plt.axhline(y=1.0, color="black", linestyle="--")
2222
plt.axvline(color="grey")
23-
plt.axline((0, 0.5), (2, 1), color="black", linestyle=(0, (5, 5)))
23+
plt.axline((0, 0.5), slope=0.25, color="black", linestyle=(0, (5, 5)))
2424
plt.plot(t, sig, linewidth=2, label=r"$\sigma(t) = \frac{1}{1 + e^{-t}}$")
2525
plt.xlim(-10, 10)
2626
plt.xlabel("t")

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.