is there any way to set color legend manually for python plotly open street map.
For example: instead of the legend color range , need to set the first 5 values: Red and next 5 blue and then yellow.

Code:
import plotly.express as px
px.set_mapbox_access_token(open(".mapbox_token").read())
df = px.data.carshare()
fig = px.scatter_mapbox(df, lat="centroid_lat", lon="centroid_lon", color="peak_hour", size="car_hours",
color_continuous_scale=px.colors.cyclical.IceFire, size_max=15, zoom=10)
fig.show()
