QCustomPlot Discussion and Comments

How to show last point of range on axis?Return to overview

I set range of xAxis of my plot in (0, 360) and i would like to see both borders on the plot . But it shows 0 on left border and 350 on right border. How can i fix this?

looks like the range is working fine, your ticker is not though, you can set up the ticker parameters so that it does 0 and 360... and my guess is you would want it to do ticks of 15 degrees or 45 degrees... all of this can be done in the options for the ticker.

Hi Boris,

I suggest you to do your setRange like this

qcustomplot->yAxis->setRange(0, value+(value*0.05));

This will slightly increase the max range of the plot, so that your value of 360 will be shown at the edge.