Setting axis label in Qwt multiaxis branches [solved]
-
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 ?
-
Ok,
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
Ciao miky
-
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 :)