# Use Plots() library to graph a colored surface

**URL:** <https://discourse.julialang.org/t/use-plots-library-to-graph-a-colored-surface/66561>\
**Category:** General Usage\
**Created:** [August 17, 2021, 5:36pm UTC](https://discourse.julialang.org/t/use-plots-library-to-graph-a-colored-surface/66561 "2021-08-17T17:36:24Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![genkuroki](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/genkuroki/32/18030_2.png) [@genkuroki](https://discourse.julialang.org/u/genkuroki)\
**Post date:** [August 19, 2021, 12:15pm UTC](https://discourse.julialang.org/t/use-plots-library-to-graph-a-colored-surface/66561/8 "2021-08-19T12:15:16Z")

</div>

My environment is Windows 10 with

```julia
using Pkg
println("Julia v", VERSION)
Pkg.status("IJulia")
Pkg.status("PyCall"; mode = PKGMODE_MANIFEST)
Pkg.status("Plots")
Pkg.status("PyPlot")
Pkg.status("Plotly")
Pkg.status("StaticArrays")
Pkg.status("Parameters")

```

↓

```julia
Julia v1.6.2
      Status `D:\.julia\environments\v1.6\Project.toml`
  [7073ff75] IJulia v1.23.2
      Status `D:\.julia\environments\v1.6\Manifest.toml`
  [438e738f] PyCall v1.92.3
      Status `D:\.julia\environments\v1.6\Project.toml`
  [91a5bcdd] Plots v1.20.1
      Status `D:\.julia\environments\v1.6\Project.toml`
  [d330b81b] PyPlot v2.9.0
      Status `D:\.julia\environments\v1.6\Project.toml`
  [58dd65bb] Plotly v0.4.0
      Status `D:\.julia\environments\v1.6\Project.toml`
  [90137ffa] StaticArrays v1.2.12
      Status `D:\.julia\environments\v1.6\Project.toml`
  [d96e819e] Parameters v0.12.2

```

I use Plots.jl v1.20.1 installed in the directory

```julia
D:\.julia\packages\Plots\HcxwM

```

But your Plots.jl directory is

```julia
C:\Users\Hermesr\.julia\packages\Plots\hyS17

```

Your hyS17 is not equal to my HcxwM.

> [@HerAdri](#):
>
> ```julia
> Stacktrace:
> [1] py_set_axis_colors(sp::Plots.Subplot{Plots.PyPlotBackend}, ax::PyCall.PyObject, a::Plots.Axis)
> @ Plots C:\Users\Hermesr\.julia\packages\Plots\hyS17\src\backends\pyplot.jl:815
> 
> ```

Probably you are using an older version of Plots.jl due to conflicts with other packages.

First, upgrade installed packages by

```julia
pkg> up

```

and check if Plots.jl is upgraded to version ≥ v1.20.1 or not.

If not, restart Julia in an empty directory and run

```julia
pkg> activate .
pkg> add Plots
pkg> status

```

Confirm the version of Plots.jl is ≥ v1.20.1. Then try to run my code.

---

_[View the full topic](https://discourse.julialang.org/t/use-plots-library-to-graph-a-colored-surface/66561)._
