Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
Setting axis label in Qwt multiaxis branches [solved]
Hi all My names Michele, and i'm working with ploting data in Qt
I installed the Qwt braches to implement multiaxis plot. But now I have a question. colud someone said me ho to set the axis label for each axis of my plot.
Hi and welcome to devnet,
My knowledge of Qwt is a bit rusty but isn't "setAxisTitle":http://qwt.sourceforge.net/class_qwt_plot.html#a5d60f1836e05e5cc5c7fe9570d6a608a what you need ?
Sorry I forget to write which kind of branches I install. I have Qwt with the branch for the multiaxis. So my question is about how to set axis title for each axis.
I solved my problem. here after a peaco of code to expalin how to do it.
setAxesCount(QwtAxis::yLeft,4); // set 4 axis on y direction
setAxisTitle(QwtAxisId(QwtAxis::yLeft,0),"ciao"); // set the title for the first axis setAxisTitle(QwtAxisId(QwtAxis::yLeft,1),"ciao"); // set the title for the second axis setAxisTitle( QwtAxis::xBottom, "Whatever" ); // set the title for the x axis
Nive you found out and thanks for sharing !
Since you have Qwt working now, please update the thread title prepending [solved] so other forum users may know a solution has been found :)