# Function Plot - error message

**URL:** <https://discourse.julialang.org/t/function-plot-error-message/26359>\
**Category:** General Usage\
**Created:** [July 14, 2019, 7:07pm UTC](https://discourse.julialang.org/t/function-plot-error-message/26359 "2019-07-14T19:07:51Z")\
**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, 7:07pm UTC](https://discourse.julialang.org/t/function-plot-error-message/26359/1 "2019-07-14T19:07:51Z")

</div>

Dear all,  
I have instaled the Package Gadfly to draw some graphics.  
I have run:

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

```

and a message of error is presented:

```julia
ERROR: UndefVarError: plot not defined
Stacktrace:
 [1] top-level scope at none:0

```

Could anyone help me please?

---

<div class="post-metadata">

**Author:** ![Mattriks](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/mattriks/32/351_2.png) [@Mattriks](https://discourse.julialang.org/u/Mattriks)\
**Post date:** [July 14, 2019, 10:19pm UTC](https://discourse.julialang.org/t/function-plot-error-message/26359/2 "2019-07-14T22:19:09Z")

</div>

Your code above works for me, so you’ll need to provide more info about your OS, and version of Julia and Gadfly.
