Hello. I have a DataFrame with a unique ID tag for the data for multiple lines.
When I use px.line(data, x=data[‘x’], y=data[‘y’], color=data[‘line_id’]), a plot is produced with the lines correctly separated, but each line also is associated with some extra faded/dashed line in the background. This is shown below.
I have checked that I have sorted by data correctly, so that is not the problem. I have also tried creating this plot using a method where I loop through the 'line_id’s and add them to a go.Figure() with a go.Scatter() trace one-by-one, and this works with no issue, but of course is not as efficiently. How the plot is supposed to look using this method is shown below.
Is there any fix to this issue such that I can use px.line()? Or is there something else I am doing incorrectly? I have checked with the examples on the Line Chart Plotly page, and that works totally fine, so I am just unclear what could possibly be going on.