When I try this:
using Plots
bar(["a", "b", "c"], [5, 9, 7]; legend=false, orientation=:h)
I get this (not desired result as you can see):
How to properly change the bar plot orientation in Plots.jl in Julia?
Thank you!
A few options:
orientation=:h
orientation=:v
:bar(["a", "b", "c"], [5, 9, 7]; legend=false, orientation=:v)
The documentation says this is deprecated. The alternative now is:
bar(["a", "b", "c"], [5, 9, 7]; legend=false, permute = (:x, :y)) # This doesn't work in this case, as regardless of the order we get the horizontal version. If you were wanting to make it horizontal, this is what you would do now.
More info: Plots.jl documentation page.