From 5088bad424288058e4850161ca7e6b7332917f8d Mon Sep 17 00:00:00 2001 From: David Widmann Date: Tue, 12 Dec 2023 13:01:55 +0100 Subject: [PATCH] Simplify `plot` call in README --- README.md | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/README.md b/README.md index 1e199b1..81bc444 100644 --- a/README.md +++ b/README.md @@ -12,10 +12,7 @@ using FresnelIntegrals using Plots z = -30:0.001:30 -plot(x->real(fresnelc(x)), x->real(fresnels(x)),z,legend=false) -title!("Euler Spiral") -xlabel!("C(z)") -ylabel!("S(z)") +plot(fresnelc, fresnels, z; legend=false, title="Euler Spiral", xlabel="C(z)", ylabel="S(z)") ``` ![Spiral](Spiral.png) @@ -48,4 +45,4 @@ BenchmarkTools.Trial: 10000 samples with 187 evaluations. 548 ns Histogram: log(frequency) by time 754 ns < Memory estimate: 368 bytes, allocs estimate: 2. -``` \ No newline at end of file +```