Skip to content

Commit b0470ba

Browse files
Yoav Ramstevengj
authored andcommitted
fix deprecation warning (#312)
The current version causes `WARNING: cos{T <: Number}(x::AbstractArray{T}) is deprecated, use cos.(x) instead.`
1 parent 4c6a828 commit b0470ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ For example:
8282

8383
```
8484
using PyPlot
85-
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));
85+
x = linspace(0,2*pi,1000); y = sin.(3 * x + 4 * cos.(2 * x));
8686
plot(x, y, color="red", linewidth=2.0, linestyle="--")
8787
title("A sinusoidally modulated sinusoid")
8888
```

0 commit comments

Comments
 (0)