PDA

View Full Version : Y axis side by side with qwt multiaxes not superposed



Sangfeust
29th January 2015, 13:10
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.

Uwe
30th January 2015, 06:42
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

Sangfeust
30th January 2015, 10:13
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:
10917

The code
File graph.h 10918

File graph.cpp 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 ...