# Logarithmic Function in Y-axis

**URL:** <https://root-forum.cern.ch/t/logarithmic-function-in-y-axis/49702>\
**Category:** Newbie\
**Created:** [April 22, 2022, 11:08pm UTC](https://root-forum.cern.ch/t/logarithmic-function-in-y-axis/49702 "2022-04-22T23:08:49Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Roy](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/roy/32/30362_2.png) [@Roy](https://root-forum.cern.ch/u/Roy)\
**Post date:** [April 22, 2022, 11:08pm UTC](https://root-forum.cern.ch/t/logarithmic-function-in-y-axis/49702/1 "2022-04-22T23:08:49Z")

</div>

Hello,  
My value differ a lot in Y-axis [from 10 to 10^6) in histogram which makes most of the value disappear in the plot. It doesn’t show up in the logarithmic function [10^3 to 10^6]. Is there any way to fix the problem?

Thank You so much.

---

<div class="post-metadata">

**Author:** ![Wile\_E\_Coyote](https://root-forum.cern.ch/user_avatar/root-forum.cern.ch/wile_e_coyote/32/12417_2.png) [@Wile\_E\_Coyote](https://root-forum.cern.ch/u/Wile_E_Coyote)\
**Post date:** [April 23, 2022, 5:00am UTC](https://root-forum.cern.ch/t/logarithmic-function-in-y-axis/49702/2 "2022-04-23T05:00:50Z")

</div>

Try to add: `histogram->SetMinimum(1.);`
