# Gadfly question: How to make Geom.bar slimmer, give alternating colors to bars and bars display their values

**URL:** <https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327>\
**Category:** Visualization\
**Tags:** plotting, gadfly\
**Created:** [December 1, 2021, 12:26am UTC](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327 "2021-12-01T00:26:34Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![benibilme](https://avatars.discourse-cdn.com/v4/letter/b/e5b9ba/32.png) [@benibilme](https://discourse.julialang.org/u/benibilme)\
**Post date:** [December 1, 2021, 4:15am UTC](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327/3 "2021-12-01T04:15:22Z")

</div>

Thank you. This is exactly what I want. I really appreciate.

Unfortunately, it looks intimidating to me. I do not think, I would be able to come up with that. After seeing `bar_spacing` setting in your solution, I finally realized its place and by searching, I found where it is embedded. `color=isodd.(axes(df,1))` is a brilliant solution which I would have difficulty to come by with my inadequate julia experience.

I have another question about plotting trajectory from datastream via gadfly at [my question](https://discourse.julialang.org/t/real-time-plotting-with-gadfly-vehicle-trajectory-plotting/72333). I apprecite if you care to comment on that.

Again thank you very much.

---

_[View the full topic](https://discourse.julialang.org/t/gadfly-question-how-to-make-geom-bar-slimmer-give-alternating-colors-to-bars-and-bars-display-their-values/72327)._
