A question about the "plot"

using GR
x=0:0.1:100
y=sin.(x)
xlim=([0,120])
ylim=([-1.5,1.5])
plot(x,y)

why does it wrong?thanks!

julia1.3.1

Hi,
Your example works for me on Julia 1.4. Maybe GR was updated between 1.3 and 1.4 and now it exports the plot function?
How did you run the code? Shift-Enter line by line? I see you haven’t saved your file.
Can you try GR.plot(x,y)?
Anyway, GR is used as a backend for plotting. You usually want to use:

using Plots
gr() # or plotly()
plot(1:100)

Please avoid posting screenshots. Quoted code/errors is more than enough.

thanks! it works