# Problem with Plots using Julia V1.7.0 and VS Code

**URL:** <https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363>\
**Category:** General Usage\
**Tags:** plotting\
**Created:** [December 1, 2021, 12:05pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363 "2021-12-01T12:05:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Post date:** [December 1, 2021, 12:05pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363/1 "2021-12-01T12:05:08Z")

</div>

Using Julia version 1.6.4 and VS Code and running the following code

```julia
using Plots
x = 1:10; y = rand(10)
plot(x, y)
end 

```

I get the expected graph in the plot pane. However running the same code with Julia version 1.7.0 I get the following error code:

```julia
Error showing value of type Plots.Plot{Plots.GRBackend}:
ERROR: could not load library "libGR.dll"
The specified module could not be found.
Stacktrace:
  [1] setcharheight
    @ C:\Users\benec\.julia\packages\GR\yMV3y\src\GR.jl:1273 [inlined]
  [2] gr_set_font(f::Plots.Font; halign::Symbol, valign::Symbol, color::RGB{FixedPointNumbers.N0f8}, rotation::Int64)
    @ Plots C:\Users\benec\.julia\packages\Plots\cc8wh\src\backends\gr.jl:389
  [3] gr_set_xticks_font(sp::Plots.Subplot{Plots.GRBackend})
    @ Plots C:\Users\benec\.julia\packages\Plots\cc8wh\src\backends\gr.jl:726
  [4] _update_min_padding!(sp::Plots.Subplot{Plots.GRBackend})
    @ Plots C:\Users\benec\.julia\packages\Plots\cc8wh\src\backends\gr.jl:920
......

```

changing the plot backend to

```julia
julia> pyplot()
Plots.PyPlotBackend()

```

results in the following warning message

```julia
┌ Warning: `vendor()` is deprecated, use `BLAS.get_config()` and inspect the output instead
│ caller = npyinitialize() at numpy.jl:67
└ @ PyCall C:\Users\benec\.julia\packages\PyCall\3fwVL\src\numpy.jl:67
Error showing value of type Plots.Plot{Plots.PyPlotBackend}:
ERROR: MethodError: no method matching getproperty(::Char, ::String)
Closest candidates are:
  getproperty(::PyCall.PyObject, ::AbstractString) at C:\Users\benec\.julia\packages\PyCall\3fwVL\src\PyCall.jl:311
  getproperty(::PyPlot.LazyPyModule, ::AbstractString) at C:\Users\benec\.julia\packages\PyPlot\XaELc\src\plot3d.jl:16
  getproperty(::PyPlot.ColorMap, ::AbstractString) at C:\Users\benec\.julia\packages\PyPlot\XaELc\src\colormaps.jl:26
........

```

How can I resolve this problem?

---

<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:** [December 1, 2021, 12:06pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363/2 "2021-12-01T12:06:37Z")

</div>

You could try `build GR` to re-install the GR backend

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Post date:** [December 1, 2021, 12:09pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363/3 "2021-12-01T12:09:30Z")

</div>

thank you for the very quick reply.  
Stupid question: How can ich do this?

---

<div class="post-metadata">

**Author:** ![Carsten](https://avatars.discourse-cdn.com/v4/letter/c/f14d63/32.png) [@Carsten](https://discourse.julialang.org/u/Carsten)\
**Post date:** [December 1, 2021, 12:15pm UTC](https://discourse.julialang.org/t/problem-with-plots-using-julia-v1-7-0-and-vs-code/72363/4 "2021-12-01T12:15:34Z")

</div>

build GR

works. But what is about the pyplot backend?
