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 f716990

Browse filesBrowse files
committed
Use slope in axline example
1 parent b85c7f4 commit f716990
Copy full SHA for f716990

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.