Y axis side by side with qwt multiaxes not superposed
Hello,
I have not found how to show correctly the multi axes.
So I set 2 axis:
setAxesCount(QwtAxis::yLeft, 2);
I enable the axis
enableAxis(QwtAxisId(QwtAxis::yLeft, 0).id, true);
enableAxis(QwtAxisId(QwtAxis::yLeft, 1).id, true);
But when I show the plot the 2 axis are superposed, not side by side.
Can someone help me to understand why?
Thanks.
Re: Y axis side by side with qwt multiaxes not superposed
sizeHint/minimumSizeHint are not yet implemented properly for the multiaxis plot. So I can imagine, that something wrong might happen, when resizing the plot below what should be the minimum size.
If not you would have to provide a small demo to show the issue.
Uwe
3 Attachment(s)
Re: Y axis side by side with qwt multiaxes not superposed
I make some test with a independant widget, and it looks better, but can do more.
I reach to have 2 axis from each side, but the Title are not correctly shown.
I dont know how to change font of the axis, but will find :).
Other thing I want to change is the color of the axis's ticks, but still don't know how.
What it looks:
Attachment 10917
The code
File graph.h Attachment 10918
File graph.cpp Attachment 10921
EDIT: I attach the file because I am not allowed to paste all the code in one time :s. I also change some error when working with the axis. But I still need to find a way to change the axis title font ...