# What does this mean: Plot(...)

**URL:** <https://discourse.julialang.org/t/what-does-this-mean-plot/25852>\
**Category:** Visualization\
**Tags:** gadfly\
**Created:** [June 30, 2019, 7:04am UTC](https://discourse.julialang.org/t/what-does-this-mean-plot/25852 "2019-06-30T07:04:40Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![GdMacmillan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdmacmillan/32/8839_2.png) [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Post date:** [June 30, 2019, 7:04am UTC](https://discourse.julialang.org/t/what-does-this-mean-plot/25852/1 "2019-06-30T07:04:40Z")

</div>

when I type

```julia
p3 = Gadfly.plot(first(sort!(df1, [:count], rev=true), 50),
    x = :word, y = :count,
    Geom.bar
)

```

it plots a bar plot with vertical bars

When I type

```julia
p3 = Gadfly.plot(first(sort!(df1, [:count], rev=true), 50),
    x = :word, y = :count,
    Geom.bar(orientation=:horizontal)
)

```

it just returns Plot(…)

What does this mean and why won’t the plot render?

---

<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:** [June 30, 2019, 8:10am UTC](https://discourse.julialang.org/t/what-does-this-mean-plot/25852/2 "2019-06-30T08:10:40Z")

</div>

It means you’ve encountered a bug in the Gadfly code. You can see the error by doing e.g.:

```julia
draw(SVG(6inch,3inch), p3)

```

Please open an issue on [Gadfly’s github page](https://github.com/GiovineItalia/Gadfly.jl/issues).

---

<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:** [June 30, 2019, 8:16am UTC](https://discourse.julialang.org/t/what-does-this-mean-plot/25852/3 "2019-06-30T08:16:16Z")

</div>

Actually this is similar to:  
[https://github.com/GiovineItalia/Gadfly.jl/issues/1266#issuecomment-477102145](https://github.com/GiovineItalia/Gadfly.jl/issues/1266#issuecomment-477102145)

So maybe you don’t need to open an issue.

---

<div class="post-metadata">

**Author:** ![GdMacmillan](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gdmacmillan/32/8839_2.png) [@GdMacmillan](https://discourse.julialang.org/u/GdMacmillan)\
**Post date:** [July 1, 2019, 6:46am UTC](https://discourse.julialang.org/t/what-does-this-mean-plot/25852/4 "2019-07-01T06:46:23Z")

</div>

OK that explains it. I needed to swap x, y assignment. Thanks for the help!
