# How to fix the y-axis of a plot module chart?

**URL:** <https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958>\
**Category:** Support\
**Created:** [June 10, 2023, 6:13am UTC](https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958 "2023-06-10T06:13:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [June 10, 2023, 6:13am UTC](https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958/1 "2023-06-10T06:13:08Z")

</div>

![1686361324738](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/1/6/16e4fb4fd0feb11205ab95aef9daec48786a5c03.png)  
 ![1686361344376](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/d/3/d3ac8fa7daff8d9a3c2f97940f1c794f468338b4.png)

How can I fix the y-axis coordinates from 0 to 2?

---

<div class="post-metadata">

**Author:** ![rbumm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/rbumm/32/9404_2.png) [@rbumm](https://discourse.slicer.org/u/rbumm)\
**Post date:** [June 10, 2023, 2:46pm UTC](https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958/2 "2023-06-10T14:46:48Z")

</div>

You can use the “Plots” module and set the y-axis range like this:

 ![image](https://us1.discourse-cdn.com/flex002/uploads/slicer/original/3X/f/f/ffdeff94b7bcae140b696ebbff80d9856c7c9626.png)

---

<div class="post-metadata">

**Author:** ![pearsonm](https://sea2.discourse-cdn.com/flex002/user_avatar/discourse.slicer.org/pearsonm/32/18514_2.png) [@pearsonm](https://discourse.slicer.org/u/pearsonm)\
**Post date:** [June 11, 2023, 12:07am UTC](https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958/3 "2023-06-11T00:07:34Z")

</div>

If you want to use Python there is also an example in the script repository [Using slicer.util.plot() utility function](https://slicer.readthedocs.io/en/latest/developer_guide/script_repository.html#using-slicer-util-plot-utility-function)

---

<div class="post-metadata">

**Author:** ![David.Xu](https://avatars.discourse-cdn.com/v4/letter/d/f19dbf/32.png) [@David.Xu](https://discourse.slicer.org/u/David.Xu)\
**Post date:** [June 11, 2023, 1:56pm UTC](https://discourse.slicer.org/t/how-to-fix-the-y-axis-of-a-plot-module-chart/29958/4 "2023-06-11T13:56:54Z")

</div>

thank you for your replies, it’s done right now.
