QCustomPlot Discussion and Comments

hide the axis.Return to overview

I want to hide the axis. What code should I add?

plot->graph(index)->setVisible(false);
plot->replot();

No, that hides the graph, obviously.

@empty: check the documentation for a method that sounds like it does what you want ;)

@isso yes, i want to hide Axis scale value. I'll try to find method the documentation

try setTickLabel(false)
http://www.qcustomplot.com/documentation/classQCPAxis.html#a04ba16e1f6f78d70f938519576ed32c8

@isso thanks a lot ,it is success,

ui->custonplot->xAxis->setTicklabels(false)