# Normalizing Y axis in histogram Python

**URL:** <https://community.plotly.com/t/normalizing-y-axis-in-histogram-python/1432>\
**Category:** 📊 Plotly Python\
**Created:** [June 30, 2016, 3:05pm UTC](https://community.plotly.com/t/normalizing-y-axis-in-histogram-python/1432 "2016-06-30T15:05:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kkwan](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kkwan](https://community.plotly.com/u/kkwan)\
**Post date:** [June 30, 2016, 3:05pm UTC](https://community.plotly.com/t/normalizing-y-axis-in-histogram-python/1432/1 "2016-06-30T15:05:20Z")

</div>

I am trying to figure out if there is a way to have plotly show a histogram that is normalized in the y axis, (i.e. shows percentage of counts).

Thanks!

---

<div class="post-metadata">

**Author:** ![empet](https://avatars.discourse-cdn.com/v4/letter/e/977dab/32.png) [@empet](https://community.plotly.com/u/empet)\
**Post date:** [June 30, 2016, 3:31pm UTC](https://community.plotly.com/t/normalizing-y-axis-in-histogram-python/1432/2 "2016-06-30T15:31:57Z")

</div>

Yes, you can plot such a histogram setting the key `histnorm='percent'`.

---

<div class="post-metadata">

**Author:** ![kkwan](https://avatars.discourse-cdn.com/v4/letter/k/ecccb3/32.png) [@kkwan](https://community.plotly.com/u/kkwan)\
**Post date:** [June 30, 2016, 4:14pm UTC](https://community.plotly.com/t/normalizing-y-axis-in-histogram-python/1432/3 "2016-06-30T16:14:03Z")

</div>

Thanks! Wasn’t aware of the key stuff 🙂
