Skip to content

Commit f716990

Browse files
committed
Use slope in axline example
1 parent b85c7f4 commit f716990

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/pyplots/axline.py

Lines 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)