Qwt classes only know about doubles - the fact that those are somehow related to date/time values is completely in your code.
Uwe
Qwt classes only know about doubles - the fact that those are somehow related to date/time values is completely in your code.
Uwe
Uwe, sorry, but I didn't understand what you meant.
Can you explain again?
Thanks
Eliminate the effect of using date/time temporarily and use a usual QwtScaleDraw object - so, that you can compare the visual result more easily to what happens when you zoom in.
Then check what rectangles are selected by the zoomer ( use the debugger, or connect to the signals of QwtPlotZoomer/QwtPlotPicker ). Then we have more information about where to look for the problem.
Note that you are using the inofficial patch for more than 4 axes. Maybe this is a problem related to using a wrong axis index because of it.
Uwe
Hello Uwe,
If I eliminate the date/time the problem persists. The same result. I checked the rectangles and it's right. I tried to use the rectangle's first and last point as x-axis and It doesn't work. It prints as I showed before, just a small piece on the screen's center. I don't think my problem is because of the patch, because I'm using the MultiYAxis patch, I'm applying just for the y-axis, I don't have and use a patch on my x-axis. I have just the two x-axis that Qwt provides, top and bottom.
Do you have any other idea?
Thanks in advance
Please simplify your code as far as possible and find values for the scale, that you can show the problem with a simple call of setAxisScale. Then try the same with a version without using the multi-axes patch.
When the problem is still there upload your demo code as it is and I will have a look at it. If the problem is gone without the multi-axes patch upload a tarball with your patched Qwt version too.
Uwe
Bookmarks