I use QwtMatrixRasterData
screen_1.png
Y-axis: we have 30 rows here in matrix data.
but I have to count in "mm"
for example three rows of matrix it's a 1 mm, thus I need to change scale without changing the matrix, how can I do it?
thank you!
I use QwtMatrixRasterData
screen_1.png
Y-axis: we have 30 rows here in matrix data.
but I have to count in "mm"
for example three rows of matrix it's a 1 mm, thus I need to change scale without changing the matrix, how can I do it?
thank you!
[QUOTE=layer;244252Y-axis: we have 30 rows here in matrix data - for example three rows of matrix it's a 1 mm, ..[/QUOTE]
1.0 mm : 3.0 * 30 = 10 mm
Qt Code:
data->setInterval( Qt::YAxis, 10.0 );To copy to clipboard, switch view to plain text mode
Uwe
layer (13th May 2013)
it seems like setInterval(Qt::Axis, double&)
but it needs
Qt Code:
virtual void QwtMatrixRasterData::setInterval(Qt::Axis, const QwtInterval&)To copy to clipboard, switch view to plain text mode
or I didn't catch something?
so then I wrote this snippet:
Qt Code:
setInterval(Qt::YAxis, QwtInterval(0, 10, QwtInterval::ExcludeMaximum));To copy to clipboard, switch view to plain text mode
and it doesn't work, what I did wrong?
Bookmarks