# How to set the same indentation between the grid lines in xaxis, yaxis?

**URL:** <https://community.plotly.com/t/how-to-set-the-same-indentation-between-the-grid-lines-in-xaxis-yaxis/79079>\
**Category:** plotly.js\
**Tags:** question\
**Created:** [October 6, 2023, 9:09am UTC](https://community.plotly.com/t/how-to-set-the-same-indentation-between-the-grid-lines-in-xaxis-yaxis/79079 "2023-10-06T09:09:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![User123123](https://avatars.discourse-cdn.com/v4/letter/u/858c86/32.png) [@User123123](https://community.plotly.com/u/User123123)\
**Post date:** [October 6, 2023, 9:09am UTC](https://community.plotly.com/t/how-to-set-the-same-indentation-between-the-grid-lines-in-xaxis-yaxis/79079/1 "2023-10-06T09:09:45Z")

</div>

I need the grid on the graph not to change at any scale, how can I do this?

Now:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/7/f/7f3ceca1cd60a1a3a695abde34236c445b225574.png)

Need:

 ![image](https://us1.discourse-cdn.com/flex024/uploads/plot/original/3X/5/3/53e71e9bcb3433f2d18d85717f6e04a1a37708e6.png)

---

<div class="post-metadata">

**Author:** ![AIMPED](https://sea2.discourse-cdn.com/flex024/user_avatar/community.plotly.com/aimped/32/21758_2.png) [@AIMPED](https://community.plotly.com/u/AIMPED)\
**Post date:** [October 6, 2023, 9:31am UTC](https://community.plotly.com/t/how-to-set-the-same-indentation-between-the-grid-lines-in-xaxis-yaxis/79079/2 "2023-10-06T09:31:52Z")

</div>

Hi @User123123 welcoem to the forums.

You are searching for `scaleanchor` mayby in combination of setting your axis ranges.

> [@Distortion in Axes of plots](https://community.plotly.com/t/distortion-in-axes-of-plots/74922):
>
> Hey, I’m struggling with the distortion in the axis. I found this “approach”: But it’s couple of years old so I wondered whether there’s a solution without having to approximate… Cheers!
