# Weird Y axis scaling

**URL:** <https://community.plotly.com/t/weird-y-axis-scaling/49326>\
**Category:** plotly.js\
**Created:** [January 25, 2021, 11:11am UTC](https://community.plotly.com/t/weird-y-axis-scaling/49326 "2021-01-25T11:11:07Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![pault](https://avatars.discourse-cdn.com/v4/letter/p/b9bd4f/32.png) [@pault](https://community.plotly.com/u/pault)\
**Post date:** [January 25, 2021, 11:11am UTC](https://community.plotly.com/t/weird-y-axis-scaling/49326/1 "2021-01-25T11:11:07Z")

</div>

Hello,

I tried this very basic example for scatter animation (found in one of pull requests): [https://codepen.io/plotly/pen/ZpWPpj](https://codepen.io/plotly/pen/ZpWPpj)

Initially it works fine, but if you press Randomize button 10-20 times, Y axis scales and some of scatter values won’t be shown, like that:  
 ![Capture](https://us1.discourse-cdn.com/flex024/uploads/plot/original/2X/6/69d05a1ceb631866ace1e9c0bc759456fe3b9592.png)

Any idea why it happens and how to fix it?  
I would like Y axis to autoscale, not to be fixed all the time – is it possible?
