From f7169908fb32e12ce87224af61e4b77b8c35c928 Mon Sep 17 00:00:00 2001 From: Tim Hoffmann <2836374+timhoffm@users.noreply.github.com> Date: Tue, 7 Apr 2020 09:23:10 +0200 Subject: [PATCH] Use slope in axline example --- examples/pyplots/axline.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/pyplots/axline.py b/examples/pyplots/axline.py index 713b23aee6fd..c1890c186393 100644 --- a/examples/pyplots/axline.py +++ b/examples/pyplots/axline.py @@ -20,7 +20,7 @@ plt.axhline(y=0.5, color="black", linestyle=":") plt.axhline(y=1.0, color="black", linestyle="--") plt.axvline(color="grey") -plt.axline((0, 0.5), (2, 1), color="black", linestyle=(0, (5, 5))) +plt.axline((0, 0.5), slope=0.25, color="black", linestyle=(0, (5, 5))) plt.plot(t, sig, linewidth=2, label=r"$\sigma(t) = \frac{1}{1 + e^{-t}}$") plt.xlim(-10, 10) plt.xlabel("t")