QCustomPlot Discussion and Comments

Struggling with number formatReturn to overview
March 13, 2025, 08:52
by mf2

I am struggling with plotting integers in the range 3145600...3145800. Sadly, the numbers show up in the axis in the format "3.1458⋅106" - but i want to see the actual numbers, not this abbreviation. I tried playing with setNumberFormat, using 'f', 'g', 'e', and playing with setNumberPrecision, but to no avail.

Can this be achieved somehow or do I need to change the source code?

March 13, 2025, 09:12
by mf2

For now, in QCPAxisTicker ::getTickLabel , I added this hack:

if (tick > 100000) return QString::number((int)tick);

AltStyle によって変換されたページ (->オリジナル) /