How do I control Y-axis labels in scatter plot?

Hi,

I’m using react-plotly. I have a situation where for my scatter plot, the y-axis labels aren’t all being shown in some conditions. In the first condition (see below), each row shows a label on the y-axis. When I use all the same settings but with a smaller dataset (just a subset of the data in the first condition), then the y-axis shows a label only for every other row, even though labels are given for each right like in the first condition. How can I change this? Thanks!

Condition 1, label shown for each row:
image

Condition 2, label only on every other row:
image