Multiple y scales to show all data

Hi @erlens04,

Welcome to the community! :slightly_smiling_face:

A few ideas based on what you said:

I want all data to be displayed as each data was having the y scale as 0-100% when viewing all the data at the same time

  • You can add multiple y-axis by providing explicitly the yaxis parameter to go.Scatter. Here’s a link to the documentation:
  • You could normalize the data for each trace individually to put in a [0, 1] interval. It can be done in pandas via (s - s.min()) / (s.max() - s.min()) where s is a series (and something equivalent for the entire dataframe). This could be a bad choice if the magnitude becomes important and it is crucial to inform the readers that the y-axis has normalized quantities.

  • You could have traces of different scales in different subplots sharing the same x-axis:

I often find option 3 more readable than option 1, but it depends from case to case.

Hope this helps!

1 Like