PDA

View Full Version : Panning to right



atrofimov
10th April 2013, 15:30
Hello!

I use panning in my software with by calling function
QwtPlot::setAxisScale

When the right-most label of bottom scale is on the border
and i want to move the chart to the right,
you can see the effect the narrowing of chart.
It is only when moving to the right.

A think this problem in function
void QwtScaleWidget::getBorderDistHint
, because incorrectly selected values of 'start' and 'end'

I almost do not speak English and I beg your forgiveness for bad text.

Thanks!

Andrey

Uwe
10th April 2013, 19:40
Guess it is because the plot layout needs to reserve space for the tick label. You don't have this effect at the left end because there is enough space below the left axis. On possible solution to this problem is to rotate the tick labels, like it is done in the cpuplot example.

Uwe

atrofimov
13th April 2013, 08:06
Uwe,

If you look at TeeChart, this effect is not there.
I think that the rotation the tick labels is not true solution to the problem.
Can I suggest a solution, and the changes to be added to the branch qwt?

Uwe
13th April 2013, 09:34
It is always possible to discuss modifications,

Uwe