Hi Uwe,
it would be cool, if you could help me again with two questions:
1.
I have implemented the spectrogram plot, just like you did. But now, the plot area does not fit completly. There is some space between the borders of the plot and the beginnig of the spectrogram. I have no clue how to fix it. Please have a look in the screenshot (I marked it red):
qwt_spec_quest.jpg
I set the interval:
setInterval( Qt::XAxis, QwtInterval( -0.5,192000+0.5, QwtInterval::ExcludeMaximum ) );
setInterval( Qt::YAxis, QwtInterval( -10, 10, QwtInterval::ExcludeMaximum ) );
setInterval( Qt::XAxis, QwtInterval( -0.5,192000+0.5, QwtInterval::ExcludeMaximum ) );
setInterval( Qt::YAxis, QwtInterval( -10, 10, QwtInterval::ExcludeMaximum ) );
To copy to clipboard, switch view to plain text mode
and scaled the axis:
setAxisScale
( QwtPlot::xBottom,
0,
192000 );
setAxisMaxMinor
( QwtPlot::xBottom,
1 );
setAxisScale
( QwtPlot::yLeft,
-9.5,
9.5 );
setAxisMaxMinor
( QwtPlot::yLeft,
1 );
setAxisScale( QwtPlot::xBottom,0,192000 );
setAxisMaxMinor( QwtPlot::xBottom, 1 );
setAxisScale( QwtPlot::yLeft, -9.5,9.5 );
setAxisMaxMinor( QwtPlot::yLeft, 1 );
To copy to clipboard, switch view to plain text mode
What is wrong there?
2.
The values on the axes should be different. f.e. the values on the y-axis represent angles with more than one angle between each other. So the vaues in the data matrix represent valuese at the 2nd, 4th, 6th angle. To clear this up: if you have a look in the screenshot again -there is only one value written on the y-axis- but however, this i want this to be a 10, not a 5... How can I change it?
Thank you very much!!
QTim
Bookmarks