QCustomPlot Discussion and Comments

Axis SetNumberFormatReturn to overview

I would like to plot geographic coordinates in northing, easting, and would like the ticks to be integers. The y axis will always have 7 characters and the x axis always 6 - e.g. 532487, 6351842.

I cannot work out what the "f" style format will be to get them displayed as integers above without any following decimal places. Everything I try adds additional .000 or .000000.

I will never scale in to sub metre level, so am happy never to see decimal points, but it is conventional to never print these values in scientific format.

you want 'g' with precision equal to the max number of characters you want. then set the fill as ' '.