QCustomPlot Discussion and Comments

Gaps in the chartReturn to overview


Look at the screenshot http://postimg.org/image/pc6pu0dlj/

My question is simple, but I can't do this, the way I want. How and what should I do, to make the gaps in the chart? At the screenshot above I insert value -200 for these three signals, but there is - as you see - a line connecting the visible value to the not visible. I want to get something similar to this http://postimg.org/image/inknhw54j/ Is there any possibility to do this?

Because these data come from Network, and if datagram will not income, I want to leave empty graph, but with the previous drawn signal, and if data income again, the rest of the signal should be drawn, so this can be consider as discontinuous signal.

Thanks in advance,

Hi Arthur,

http://postimg.org/image/inknhw54j/ Is there any possibility to do this?
I don't believe so. (without some changes in the lib)

Simple thought, you can try and colorize gaps with some item like a QCPRect expending from top to bottom. Therefore, you know spot them easily.
e.g. : http://postimg.org/image/h9ioiskrz/


Ok, I will try this shortly and I will give my feedback, thanks for suggestion,



FYI: This feature just made it into the upcoming 1.3.0 release. Adding NaN as value creates a gap in the graph line. (std::numeric_limits<double>::quiet_NaN()).

DerManu. Hooray, gaps! Can't wait for that. Was emulating gaps with multiple graphs, that was pain in ass.