QCustomPlot Discussion and Comments

How to do complete replotReturn to overview

In my application I let user change font size on runtime. Font size is properly propagated to QCustomPlot, however, due to caching, all ticks that were painted before keep the old font size. Also the axes labels are clipped. If the font is changed before plot creation everything works properly.

So here's my question: Is there any way to completely replot? Clearing all caches and stuff...

You'll have to propagate the selected font to all the items.
For instance, when created an axis initializes its own font with the parentPlot font.

QCPAxis::QCPAxis(QCPAxisRect *parent, AxisType type) :