I am using scatter with fill=“toself” to plot custom geographic polygons with colors. For the heat of the colors, I use a matplotlib coloscale. I know how to transfer the colorscale to the format plotly uses, but I am incapable of adding the colorbar to the scatter plot without adding markers. Is there some way to just plot the colorbar separate and add it? Or some other way?
My plotting is similar to: Create your own choropleth map with custom shapefiles