QCustomPlot Discussion and Comments

How to make graph discontinuities ?Return to overview


I'd like to know whether it is possible to plot graphs that have discontinuities ?

Currently I simulate this by making a new graph each time there is a disconuity, but it hard to manage.

You can place NaN as value and that will create a gap. The QCPGraph documentation says:

Gaps in the graph line can be created by adding data points with NaN as value (qQNaN() or std::numeric_limits<double>::quiet_NaN()) in between the two data points that shall be separated.

Fantastic ! Thanks a lot.

Is it possible to use a different pen/brush per "continuous" section ?