# Error in ploting

**URL:** <https://discourse.julialang.org/t/error-in-ploting/45137>\
**Category:** New to Julia\
**Tags:** plotting\
**Created:** [August 18, 2020, 1:28am UTC](https://discourse.julialang.org/t/error-in-ploting/45137 "2020-08-18T01:28:44Z")\
**Posts on this page:** 9\
**Page:** 2

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [August 19, 2020, 1:12pm UTC](https://discourse.julialang.org/t/error-in-ploting/45137/21 "2020-08-19T13:12:31Z")

</div>

Have you tried adding `GR` with `Pkg.add("GR")`?

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [August 19, 2020, 1:22pm UTC](https://discourse.julialang.org/t/error-in-ploting/45137/22 "2020-08-19T13:22:33Z")

</div>

To use `Plotly`, you can do:

```julia
using Plots
plotly()

x = -6:0.2:9 
f(x) = x^3
y = f.(x)

plot(x,y, label="line")

```

but honestly, I often have problem with blocked JavaScripts, so I’d recommend fixing your `GR` installation and using that instead 😉 Unless you really want interactive plots…

---

<div class="post-metadata">

**Author:** ![Nithin\_M](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nithin_m/32/16811_2.png) [@Nithin\_M](https://discourse.julialang.org/u/Nithin_M)\
**Post date:** [August 19, 2020, 1:34pm UTC](https://discourse.julialang.org/t/error-in-ploting/45137/23 "2020-08-19T13:34:09Z")

</div>

yea…It got upgraded to 0.51.0. but still am not able to plot

---

<div class="post-metadata">

**Author:** ![tamasgal](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamasgal/32/27946_2.png) [@tamasgal](https://discourse.julialang.org/u/tamasgal)\
**Post date:** [August 19, 2020, 1:35pm UTC](https://discourse.julialang.org/t/error-in-ploting/45137/24 "2020-08-19T13:35:27Z")

</div>

What is the error message and what is your `Pkg.status()` now?

---

<div class="post-metadata">

**Author:** ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)\
**Post date:** [August 19, 2020, 2:27pm UTC](https://discourse.julialang.org/t/error-in-ploting/45137/25 "2020-08-19T14:27:04Z")

</div>

I’ve seen this error several times after updating `Plots`. It was fixed by a `]build GR` (and then restarting Julia).

---

<div class="post-metadata">

**Author:** ![Nithin\_M](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nithin_m/32/16811_2.png) [@Nithin\_M](https://discourse.julialang.org/u/Nithin_M)\
**Post date:** [August 21, 2020, 4:22am UTC](https://discourse.julialang.org/t/error-in-ploting/45137/26 "2020-08-21T04:22:26Z")

</div>

Tried that also…

---

<div class="post-metadata">

**Author:** ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)\
**Post date:** [August 21, 2020, 8:01am UTC](https://discourse.julialang.org/t/error-in-ploting/45137/27 "2020-08-21T08:01:30Z")

</div>

With what results? Have you updated Plots to the latest version?

---

<div class="post-metadata">

**Author:** ![Nithin\_M](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nithin_m/32/16811_2.png) [@Nithin\_M](https://discourse.julialang.org/u/Nithin_M)\
**Post date:** [August 21, 2020, 10:29am UTC](https://discourse.julialang.org/t/error-in-ploting/45137/28 "2020-08-21T10:29:29Z")

</div>

Thank you everyone for the response. Finally got it settled !!

---

<div class="post-metadata">

**Author:** ![anon37204545](https://avatars.discourse-cdn.com/v4/letter/a/439d5e/32.png) [@anon37204545](https://discourse.julialang.org/u/anon37204545)\
**Post date:** [August 21, 2020, 10:31am UTC](https://discourse.julialang.org/t/error-in-ploting/45137/29 "2020-08-21T10:31:07Z")

</div>

You should write what the solution was and mark it as solution, so that other users with the same problem can find it.

[Previous page](https://discourse.julialang.org/t/error-in-ploting/45137.md?page=1)
