# Problem with plot

**URL:** https://discourse.julialang.org/t/problem-with-plot/26363
**Category:** New to Julia
**Created:** [July 14, 2019, 9:08pm UTC](https://discourse.julialang.org/t/problem-with-plot/26363 "2019-07-14T21:08:45Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![angeloaliano1](https://avatars.discourse-cdn.com/v4/letter/a/7ea924/32.png) [@angeloaliano1](https://discourse.julialang.org/u/angeloaliano1)
#### Post date: [July 14, 2019, 9:08pm UTC](https://discourse.julialang.org/t/problem-with-plot/26363/1 "2019-07-14T21:08:45Z")

</div>

Dear all,  
I have problem to plot figures using the package “Plot”. For example, when I run

```julia
Pkg.add("Gadfly")
using Gadfly
plot([1,2,3])

```

an error messeger appers:

```julia
julia> plot([1,2,3])
ERROR: UndefVarError: plot not defined
Stacktrace:
 [1] top-level scope at none:0

```

Could anyone help me please?

---

<div class="post-metadata">

### Author: ![KajWiik](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/kajwiik/32/199_2.png) [@KajWiik](https://discourse.julialang.org/u/KajWiik)
#### Post date: [July 14, 2019, 9:42pm UTC](https://discourse.julialang.org/t/problem-with-plot/26363/2 "2019-07-14T21:42:00Z")

</div>

With

```julia
using Gadfly

```

you are using Gadfly, not Plots ;-).

Try

```julia
plot(y = [1,2,3])

```

See  
[http://gadflyjl.org/stable/](http://gadflyjl.org/stable/)
