Skip to content

Instantly share code, notes, and snippets.

@johnmyleswhite
Created June 13, 2020 20:10
Show Gist options
  • Save johnmyleswhite/89bcfb2107d2ec996065d61a99a7cb0c to your computer and use it in GitHub Desktop.
Save johnmyleswhite/89bcfb2107d2ec996065d61a99a7cb0c to your computer and use it in GitHub Desktop.
import Plots
r = range(0.0, 1.0, length=512)
p = Plots.plot(
r,
x -> x^2 * (1 - x)^2,
)
Plots.png(p, "output2.png")
# time julia example2.jl
#
# real 0m19.878s
# user 0m18.231s
# sys 0m0.516s
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment