Skip to content

Commit cc625d6

Browse files
fercarozzistevengj
authored andcommitted
Update README.md (#663)
* Update README.md Update linspace to range and vectorized sin and cos. * Update README.md
1 parent 75bba75 commit cc625d6

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
@@ -117,7 +117,7 @@ Keyword arguments can also be passed. For example, matplotlib's
117117
options, and this functionality is accessed from Julia by:
118118

119119
plt = pyimport("matplotlib.pyplot")
120-
x = linspace(0,2*pi,1000); y = sin(3*x + 4*cos(2*x));
120+
x = range(0;stop=2*pi,length=1000); y = sin.(3*x + 4*cos.(2*x));
121121
plt.plot(x, y, color="red", linewidth=2.0, linestyle="--")
122122
plt.show()
123123

0 commit comments

Comments
 (0)