I have a plotly line plot and would like to assign specific colors to each line. For example, TSLA = 'blue', AAPL = 'red', etc. This is because I will create multiple scatterplots with various combinations of the entities and would like the color to be consistent.
import plotly.express as px
fig = px.line(df_pivot, x='Range', y='Mentions', color='Term')
fig.show()
Graph shown in image