1

I am working with a dataset to create lineplots of several sensors. Some of the sensors datasets miss a number of days of data, which is shown in the dataset as a nan. When plotting the data in seaborn.lineplot the gap with nan values is interpolated as a straight line.

How can I not plot anything rather than have the straight line?

1
  • Note that, to be acceptable, your question needs reproducible code and test data. Commented Oct 11, 2022 at 13:10

1 Answer 1

1

You probably need to split the sections and plot them as separate traces. Then give them all the same color.

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.