# A question about the "plot"

**URL:** <https://discourse.julialang.org/t/a-question-about-the-plot/41071>\
**Category:** General Usage\
**Tags:** question\
**Created:** [June 9, 2020, 2:30pm UTC](https://discourse.julialang.org/t/a-question-about-the-plot/41071 "2020-06-09T14:30:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [June 9, 2020, 2:30pm UTC](https://discourse.julialang.org/t/a-question-about-the-plot/41071/1 "2020-06-09T14:30:19Z")

</div>

![image](https://global.discourse-cdn.com/julialang/original/3X/8/a/8abe6b7f52719adebb3696ee224175f1b121a199.png)

```julia
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!

---

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [June 9, 2020, 2:33pm UTC](https://discourse.julialang.org/t/a-question-about-the-plot/41071/2 "2020-06-09T14:33:20Z")

</div>

julia1.3.1

---

<div class="post-metadata">

**Author:** ![Iulian.Cioarca](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/iulian.cioarca/32/30166_2.png) [@Iulian.Cioarca](https://discourse.julialang.org/u/Iulian.Cioarca)\
**Post date:** [June 9, 2020, 2:53pm UTC](https://discourse.julialang.org/t/a-question-about-the-plot/41071/3 "2020-06-09T14:53:27Z")

</div>

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:

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

```

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

---

<div class="post-metadata">

**Author:** ![abcde](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abcde/32/16180_2.png) [@abcde](https://discourse.julialang.org/u/abcde)\
**Post date:** [June 9, 2020, 3:00pm UTC](https://discourse.julialang.org/t/a-question-about-the-plot/41071/4 "2020-06-09T15:00:03Z")

</div>

thanks! it works
