I have trouble understanding the difference between reploting a single layer and calling the whole QCustomPlot::replot().

In order to minimize redraws, I moved some elements to ovelay layer. Then when they change I call layer()->replot().
But this has no effect until I call QCustomPlot::replot().

Please explain when layer()->replot() is enough and when QCustomPlot::replot() is needed.