# histogram2d with logarithmic z-axis?

**URL:** <https://discourse.julialang.org/t/histogram2d-with-logarithmic-z-axis/9455>\
**Category:** Visualization\
**Created:** [March 2, 2018, 2:39pm UTC](https://discourse.julialang.org/t/histogram2d-with-logarithmic-z-axis/9455 "2018-03-02T14:39:46Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [March 2, 2018, 5:36pm UTC](https://discourse.julialang.org/t/histogram2d-with-logarithmic-z-axis/9455/2 "2018-03-02T17:36:23Z")

</div>

Yes in [Gadfly](http://gadflyjl.org/stable/):

```julia
using RDatasets, Gadfly
D = dataset("ggplot2","diamonds")

p = plot(D, x=:Price, y=:Carat,
    Geom.histogram2d(xbincount=15, ybincount=15),
    Scale.color_log10,
    Scale.x_continuous(format=:plain),
    Guide.title("Diamonds")
)

```

![diamonds](https://global.discourse-cdn.com/julialang/original/3X/b/f/bfd5b79e74411db8f5500089ac5920ec8080fc64.png)

---

_[View the full topic](https://discourse.julialang.org/t/histogram2d-with-logarithmic-z-axis/9455)._
