I do it like this (in GR)
using Plots
f(x) = x^2
x = collect(-10:10)
y = f.(x)
println(y)
p = plot(x, y, label=false, lw=1.0)
title!("f(x) = x^2")
display(p)
println("\npress enter to close plot")
readline()
I do it like this (in GR)
using Plots
f(x) = x^2
x = collect(-10:10)
y = f.(x)
println(y)
p = plot(x, y, label=false, lw=1.0)
title!("f(x) = x^2")
display(p)
println("\npress enter to close plot")
readline()