QCustomPlot Discussion and Comments

invalid key ofr value axisReturn to overview

after I draw couple of graphs I always get this error:

virtual void QCPGraph::draw(QCPPainter*) invalid key or value axis

my graps look like normal and behave normally. So why I always get this error?
What does this error mean?

I get the same when I run my code on Android, but not on Windows. When I run in debug mode on Android I don't get the warning, which makes it hard to debug it.. Everything works fine though, just annoying message.

Just found out it only happens if I run the code that configures the plot more than once.

just add code
customPlot->clearGraphs();