Plotly.go heatmap display issues, when date range not continuous



Hi plotly community,

I stumbled upon a display issue with the heatmap in plotly python. If I filter the date range for the x-axis in an uncontinuous way (from September 1st until March 30th for example), performing df.loc (which works fine with the data itself), the heatmap kind of “interpolates” the heatmap cells between March 30th and September 1st. Ideally, I would like it to be not filled. See screenshots for code snippets and images.

Doing a “normal” date range from April 1st until August 31st works totally fine.

Does somebody have an idea, what I might be doing wrong here? Do I need to use 2 separate traces for the beginning and end of year date ranges?

Thank you

Kind regards