# Getting an error with the pgfplotsx backend for Plots.jl

**URL:** <https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136>\
**Category:** New to Julia\
**Tags:** plotting, pgfplotsx\
**Created:** [April 24, 2020, 10:51am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136 "2020-04-24T10:51:14Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [April 24, 2020, 10:51am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/1 "2020-04-24T10:51:14Z")

</div>

Hi,

I´m getting the following error, when I try to use Plots.jl with the pgfplots backend.

```julia
julia> using Plots

julia> pgfplotsx()
ERROR: UndefVarError: pgfplotsx not defined

```

Note:  
I have installed Plots v0.27.1, PGFPlotsX v1.2.5 and PGFPlots v3.2.1. Furthermore Plots.jl is working when I use the plotly backend and the examples of website of PGFPlotsX are also working.

Does anybody know what is the matter with this error?

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 24, 2020, 10:57am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/2 "2020-04-24T10:57:18Z")

</div>

What version of Plots are you on?

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [April 24, 2020, 10:58am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/3 "2020-04-24T10:58:10Z")

</div>

Plots v0.27.1

---

<div class="post-metadata">

**Author:** ![kristoffer.carlsson](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kristoffer.carlsson/32/22_2.png) [@kristoffer.carlsson](https://discourse.julialang.org/u/kristoffer.carlsson)\
**Post date:** [April 24, 2020, 11:09am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/4 "2020-04-24T11:09:04Z")

</div>

That is an old version that doesn’t include the pgfplotsx backend I think. What happens if you do `add Plots@1` in the Pkg REPL?

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [April 24, 2020, 11:11am UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/5 "2020-04-24T11:11:49Z")

</div>

Oh, ok sorry and thanks. I thought, that I would be on one of the latest version, because I did a fresh install of julia and all packages just 2 weeks ago. I´ve done ` ] up`, currently it is building. I will report, when it is finished.

---

<div class="post-metadata">

**Author:** ![Volker](https://avatars.discourse-cdn.com/v4/letter/v/77aa72/32.png) [@Volker](https://discourse.julialang.org/u/Volker)\
**Post date:** [April 24, 2020, 12:05pm UTC](https://discourse.julialang.org/t/getting-an-error-with-the-pgfplotsx-backend-for-plots-jl/38136/6 "2020-04-24T12:05:08Z")

</div>

It works. Thanks. Two packages (ConcaveHull.jl, RecipesBase.jl) have restricted the Plots.jl package to install the latest package.
