A contour plot shows border line between areas with values above/below a threshold. But a point is no area and 20 points somewhere in space will never result in a useful contour plot ! This has nothing to do with Qwt or the algorithm that is used for contouring. So before you continue better try to find out where the areas are you want to display and if your points are raster data at all !1. So given the scenario of my problem (having only about 20 data points in real world), what I should do is implement some sort of contour algorithm like CONREC or Perlin Noise to fill a large enough array of data points based on my original 20 data points.
No.2. Or if I when created my database use the screen coordinates for each of my data point instead of the real world coordinates then the sizes and coordinates here are the widget coordinates. Correct?
The image of the spectrogram is cached. If you change something relevant behind the back of the spectrogram item you have to invalidate the cache ( spectrogram->invalidateCache() ) before you replot.3. My covered area may change in size from time to time. But when I try to reset the bounding rect (after it's been initialized to some size), nothing happens. I did it like this:
myRasterData->setBoundingRect(QwtDoubleRect(-new_xlen/2, -new_ylen/2, new_xlen, new_ylen);
myPlot->replot();
Uwe




Reply With Quote

Bookmarks