QCustomPlot Discussion and Comments

Hide holes in graphReturn to overview

I have this data (measurement of battery level of an office):

x: timestamp
y: battery level

Our office close from 11h30 to 13h30 every day, so no data during that time, when plotting to QCustomPlot, it create a "hole" (indicated by blue line) in graph, how can I just hide the X axis from 11h30 to 13h30 (red rectangle)?

Image:
https://ibb.co/YNwdQBH

If you set the y value to qQNaN() for the times when data is missing, you'll get a break in the line. That's not exactly what you asked for, but maybe good enough?

Thank you very much for your reply! Yeah, I've made some research about this, seems not yet supported in QCustomPlot at the moment, but it's a very useful feature IMO.