# Gadfly problem plotting

**URL:** <https://discourse.julialang.org/t/gadfly-problem-plotting/11466>\
**Category:** General Usage\
**Created:** [June 6, 2018, 11:17am UTC](https://discourse.julialang.org/t/gadfly-problem-plotting/11466 "2018-06-06T11:17:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Guito](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@Guito](https://discourse.julialang.org/u/Guito)\
**Post date:** [June 6, 2018, 11:17am UTC](https://discourse.julialang.org/t/gadfly-problem-plotting/11466/1 "2018-06-06T11:17:07Z")

</div>

Hi everyone,

I’m starting with gadfly and I can’t undestand how to print the variable values, I mean.

if I want to print an array like p = [1,2,3]

Using gadfly  
My plot = plot( x=1:3,y=p)

and I can do it without problem.

But, if I get in my JuMP problem that Pb(t) = [1,2,3] for t1,t2 and t3 respectively that same structure doesn’t work, JuMP suggests using isfinite but it hasn’t worked thought.

It’s posible to print variable results with gadfly or I should change plotter?

Thanks!!!

---

<div class="post-metadata">

**Author:** ![dpsanders](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/dpsanders/32/3573_2.png) [@dpsanders](https://discourse.julialang.org/u/dpsanders)\
**Post date:** [June 6, 2018, 2:08pm UTC](https://discourse.julialang.org/t/gadfly-problem-plotting/11466/2 "2018-06-06T14:08:56Z")

</div>

Please provide a minimum example (defining all data and showing the plot commands you are using) and copy and paste your code, [quoting it using backticks](https://discourse.julialang.org/t/psa-how-to-quote-code-with-backticks/7530).

---

<div class="post-metadata">

**Author:** ![Guito](https://avatars.discourse-cdn.com/v4/letter/g/ecb155/32.png) [@Guito](https://discourse.julialang.org/u/Guito)\
**Post date:** [June 6, 2018, 2:59pm UTC](https://discourse.julialang.org/t/gadfly-problem-plotting/11466/3 "2018-06-06T14:59:54Z")

</div>

solved.

Thank you!
