24 Jun 00:17
Spectrogram help
From: Sebastiaan Heunis <sheunis <at> gmail.com>
Subject: Spectrogram help
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-06-23 22:18:57 GMT
Subject: Spectrogram help
Newsgroups: gmane.comp.graphics.qwt.general
Date: 2008-06-23 22:18:57 GMT
Hi I've sorted all my Qwt issues out and can now compile applications. Could someone just help me with something? I've looked at the spectrogram example, but a few things are unclear. QwtRasterData(QwtDoubleRect(-1.5, -1.5, 3.0, 3.0)) I understand that this will create an area of -(Continue reading)1.5-≥1.5 in both the x and y directions and that return QwtDoubleInterval(0.0, 10.0); for ( double level = 0.5; level < 10.0; level += 1.0 ) contourLevels += level; d_spectrogram->setContourLevels(contourLevels); sets the contourdata between 0 and 10 with a different colour every 0.5. What I need to do is to do some processing and and up with an array (typically [401][501]). I then want to plot this data from x = -200 to x = 200 with increments of 1 and from y=0 to y = 0.001 with increments of 1/500000. How do I do this? Can I just call QwtDoubleRect(-200,400,0,0.001)? Will that give me a [401][501] grid to plot in? Where do I need to store the plotting data? I'm sorry if these questions are stupid, but I really do not understand all the function calls in the spectrogram examples and don't know what everything does. Thank you.
RSS Feed