QCustomPlot Discussion and Comments

Hide part of axisReturn to overview

Hi all,

I'm using qcp to plot some data series.The data for xAxis is not continues,such as [1,2]+[5,8].I need the graph to show the part in [1,2]+[5,8],not showing the part [2,5]. Does anyone know how can I set the axis to make it? Thanks a lot!

the same problem, please

maybe you mean this?

key[0] = 1; val[0] = qSin(key[0]);
key[1] = 2; val[1] = qSin(key[1]);
key[2] = 3; val[2] = qQNaN();
key[3] = 4; val[3] = qQNaN();
key[4] = 5; val[4] = qSin(key[4]);
key[5] = 6; val[5] = qSin(key[5]);
key[6] = 7; val[6] = qSin(key[6]);
key[7] = 8; val[7] = qSin(key[7]);