By default, scatters in a mapbox will scale between themselves based on the min and max values of the dataframe column selected. What I want to do is to define a min and max range that is separated from the dataframe, and make the data points resize based on this independent range. I can do this for the color scale using ārange_colorā, but I canāt find a property to do something similar for the size of the scatters. Another option that works would be to disable the size scaling based on the other datapoints, and only use the absolute values given, but I donāt know how to do this either. Any suggestions are appreciated.
Markers size themselves with the data with a fixed 0=0 mapping, so you canāt set the min and max directly per se. You can use the sizemax
setting in Plotly Express or the sizeref
setting in Graph Objects to control the relationship between data and size, and you can use sizemin
to clip the bottom, but you canāt scale your data from 1-10 into a size range of 2-5, say.
1 Like
Thatās unfortunate. Thanks for the fast reply!