I have created the above plot using plotly express:
import plotly.express as px
fig = px.line(mini_df,
x=mini_df.index,
y=mini_df[mini_df.columns[1]],
color=mini_df[mini_df.columns[0]])
I am trying to make a line plot which has a changing color depending on the value of some column.
This works, but unfortunately, there is an ugly connection between the end of good status and the beginning of the 2nd good status phase.
Is it possible, using express, to remove this ugly connection? Or do I need to use plotly graph_objects to achieve this?
color
column switches values back and forth multiple times. See this question – Unrelenting