QCustomPlot Discussion and Comments

Suppress Legend for a singler scatterplotReturn to overview

How can I plot a scatterstyle plot without mentioning it in the legend?

pretty sure you can just call QCustomplot->legend->setVisible(false).

If you set
plot->setAutoAddPlottableToLegend(false);

then any created graphs (which are a plottable subclass) will not automatically also create an according legend item. See QCPLegend documentation for details.

The suggestion by Ian is applicable if you wish to hide the entire legend.