# Need help with bar plot in Plots.jl

**URL:** <https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360>\
**Category:** New to Julia\
**Tags:** plots\
**Created:** [February 15, 2021, 11:13pm UTC](https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360 "2021-02-15T23:13:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [February 15, 2021, 11:13pm UTC](https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360/1 "2021-02-15T23:13:04Z")

</div>

I’m using Plots.jl from inside Weave.jl to generate html. All looks good except I cannot locate how to plot grouped bar chart similar to below.

 ![image](https://global.discourse-cdn.com/julialang/original/3X/9/f/9f765b3c3b7818d84c41e0e10a4cc39ae79d50aa.png)

(Note: I saw similar questions solved for StatPlots.jl, but StatPlots is not working in my configuration, failing to find GR lib.)

---

<div class="post-metadata">

**Author:** ![hendri54](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/hendri54/32/9621_2.png) [@hendri54](https://discourse.julialang.org/u/hendri54)\
**Post date:** [February 16, 2021, 1:26am UTC](https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360/2 "2021-02-16T01:26:28Z")

</div>

Is there a specific reason why GR cannot be used?

In my experience, when plotting related libraries cannot be found, `]build Plots` often helps.

---

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [February 16, 2021, 5:43pm UTC](https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360/3 "2021-02-16T17:43:12Z")

</div>

It just broken. I rm add, build, tried everything. but StatsPlots is not working, failing with GR:

```julia
ERROR: could not load library "libGR.so"
dlopen(libGR.so.dylib, 1): image not found
Stacktrace:
 [1] setcharheight at /Users/asyrov/.julia/packages/GR/yMV3y/src/GR.jl:1273 [inlined]

```

So I really looking to alternatives to do groupedbar plot with Weave.jl.

Can anyone help?

---

<div class="post-metadata">

**Author:** ![asyrov](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/asyrov/32/13578_2.png) [@asyrov](https://discourse.julialang.org/u/asyrov)\
**Post date:** [February 16, 2021, 6:19pm UTC](https://discourse.julialang.org/t/need-help-with-bar-plot-in-plots-jl/55360/4 "2021-02-16T18:19:24Z")

</div>

It just works now. I did another round of rm/add/build/test of GR, StatsPlots, Plots. And everything works. I’m getting good plot as expected. (except DPI is not high, for my 4k monitor, but this is minor)
