# Histogram with Y-axis in log-scale

**URL:** https://discourse.julialang.org/t/histogram-with-y-axis-in-log-scale/99183
**Category:** Visualization
**Tags:** plots
**Created:** [May 21, 2023, 11:52am UTC](https://discourse.julialang.org/t/histogram-with-y-axis-in-log-scale/99183 "2023-05-21T11:52:46Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![parf](https://avatars.discourse-cdn.com/v4/letter/p/779978/32.png) [@parf](https://discourse.julialang.org/u/parf)
#### Post date: [May 21, 2023, 11:52am UTC](https://discourse.julialang.org/t/histogram-with-y-axis-in-log-scale/99183/1 "2023-05-21T11:52:46Z")

</div>

Hi all,

I want to plot histogram with Y-axis in log-scale. So, I do the following:

```julia
using Plots

gr()
histogram(r_pos*L/n, normed=:pdf, bins=0.0:0.012:0.8, yaxis=:log10, ylim=(1e-3,10))

```

 ![image](https://global.discourse-cdn.com/julialang/original/3X/e/4/e401db7ee97735c7acaf7c1e6a2261bcd0dca2ba.png)

How to make the bins filling from the 1e-3 level, and not 1e-1 as it is now?

---

<div class="post-metadata">

### Author: ![yha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/yha/32/3502_2.png) [@yha](https://discourse.julialang.org/u/yha)
#### Post date: [May 21, 2023, 2:10pm UTC](https://discourse.julialang.org/t/histogram-with-y-axis-in-log-scale/99183/2 "2023-05-21T14:10:22Z")

</div>

`fillto = 1e-3`
