kamran iranpour | 15 May 13:05
Picon

Fixed aspect ratio QwtPlotSpectrogram


Hello all,
I am plotting some data in a subclass of QwtPlotSpectrogram.
The spectrogram is inside a QMainWindow along with some plotting 
controls below it.
I want the aspect ratio of the Spectrogram to stay fixed even when the 
user resizes the MainWindow.
Currently the aspect ratio starts out wrong (the spectrogram is wider 
than it is tall even though the y range of the data is larger than the x 
range of the data), and can be changed to whatever by resizing the 
mainwindow.

How do I set the aspect ratio to be correct and keep it that way even 
though the user tries to resize the Mainwindow?

Thanks in advance for any answers!
Andreas

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Uwe Rathmann | 15 May 06:43
Picon

Re: Decreasing the size of a selected QwtSymbol

> Is there a way to erase a single symbol from the curve and not updating
> the entire plot?

With Qt3 you can use painting in XOR mode, with Qt4 the answer is no. That's 
the price of transparent desktops.

What you could try is to render the content of the canvas without the 
selection to a QImage, that can be used as paint cache. But this only makes 
sense, when rendering your scene is a factor.

Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Giacomo S. | 14 May 12:29
Picon
Favicon

problems with qwt-5.0.2 and label scale draw

Good morning.

I noticed that my program, that uses qwt-5.0.2 core dumps in the 
QwtScaleDraw::alignment () method of the library.

Is there any issue related to it, as far as you know, possibly solved 
in qwt 5.1?

Thank you very much for your attention.

Follows the backtrace of the program, from the core dump.

Core was generated by `./blmprofile'.
Program terminated with signal 11, Segmentation fault.
#0  0xb7166d0a in QwtScaleDraw::alignment ()
from /usr/local/qwt/lib/libqwt.so.5
(gdb) bt
#0  0xb7166d0a in QwtScaleDraw::alignment ()
from /usr/local/qwt/lib/libqwt.so.5
#1  0xb717fe17 in QwtPlot::setAxisScaleDraw ()
from /usr/local/qwt/lib/libqwt.so.5
#2  0x0805d6be in ProfilePlot::createCurves (this=0x80db2f0, elements=5,
labels=@0xbf88471c) at src/profileplot.cpp:257
#3  0x080664b4 in GeneralProfile::configure (this=0xbf886040,
area=@0xbf8847d0) at src/generalprofile.cpp:410
#4  0x08067304 in GeneralProfile::on_comboArea_activated
(this=0xbf886040, text=@0xbf884d5c) at src/generalprofile.cpp:455
#5  0x0807347f in GeneralProfile::qt_metacall (this=0xbf886040,
_c=QMetaObject::InvokeMetaMethod, _id=0, _a=0xbf884d2c) at
moc/moc_generalprofile.cpp:65
(Continue reading)

Uwe Rathmann | 14 May 06:35
Picon

QwtPolar 0.0.2

I have uploaded QwtPolar 0.0.2: its license has changed from the GPL to the 
Qwt license.

Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft 
Defy all challenges. Microsoft(R) Visual Studio 2008. 
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
Albert Kottke | 12 May 17:49

Possible bug in axis labelling

For 7 plots, two of the plots have -1.38778e-17 instead of 0. Though the
zero value isn't always -1.38778e-17.  You can find a screenshot of
incorrect and correct axis here:
http://accipter.org/pub/qwt-scale-problem.png

I have tried my program in both linux and windows environments, and it
appears to only happen on windows (qt-4.4.0 with mingw).

Let me know if you need me to supply the code.

Albert

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Dmitry Khaneft | 12 May 12:37
Picon
Favicon

problem with QwtRasterData value(double x, double y)

Hallo. This is almost copy of class SpectromData by Matthias Pospiech. I tried to use it in the same
purposes. Below the code as I use it. Data in a array are transferred from QList from other class. This QList
contains only one element. In comments actually transferred values are shown.

A problem that I see distort picture on a plot. I think I made a mistake with filling of array or something
else. Where is my mistake?

**********************header**********************

class SpectrogramData: public QwtRasterData
{
private:
	double *m_Array;

	struct structMinMax{
		double min;
		double max;
	};
	structMinMax m_RangeX;
	structMinMax m_RangeY;
	structMinMax m_RangeZ;

	struct structXY{
		double x;
		double y;
	};
	structXY m_DataSize;
	structXY m_RealToArray;

public:
(Continue reading)

Livio Tenze | 9 May 09:06
Picon

Trouble in compiling qwt 5.1 with Qt 4.4.0 under Visual C++ 2008 express edition

Hi all!

I tried to compile the latest released version of Qwt 5.1.0 with Qt 4.4.0 (newer version of Qt library) and under Visual C++ 2008 express edition platform, but I am not able to complete the compile process.
The compiler shows messages as "unresolved external..." at LINK stage.

Have anyone tried to compile the Qwt 5.1.0 with this environment?
May anyone help me?

Thanks in advance!
Livius

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
qwt-interest mailing list
qwt-interest <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/qwt-interest
kamran iranpour | 7 May 15:39
Picon

Two fill colors in QwtPlotCurve

Hi,

Is it possible to have two different fill colors in QwtPlotCurve ? I am 
writing a seismogram plot and the convention there is to have two 
different fill colors for positive and negative values (f.ex. fill black 
for values above baseline and white for those below).
I have used two overlapping curves and it looks kind of ok but sometimes 
I get some artifacts which I guess are caused by the two curves not 
fully overlapping for certain sizes of the widget as well as having to 
allocate twice the amount of memory.

Thanks in advance,

Kamran

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Uwe Rathmann | 1 May 17:30
Picon

Announce: QwtPolar 0.0.1

Hi all,

I have released QwtPolar 0.0.1 

This release fixes a couple of bugs in the project files for Windows.
QwtPolar 0.0.1 needs Qwt >= 5.1.0.

Enjoy,
Uwe

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Uwe Rathmann | 1 May 16:43
Picon

Announce: Qwt 5.1.0

Hi all,

I have released Qwt 5.1.0. 

It is a maintenance release with a couple of incompatible changes and new 
features. Many of the changes are made for the QwtPolar package. See the 
change log below.

Enjoy,
Uwe

Changes
-------
1) QwtSymbol::copy introduced
   Now it is possible to use derived symbol classes for curves
2) QwtPlotScaleItem introduced
   A new type of plot item for displaying axes on the canvas
3) QwtClipper added
   A collection of clipping algos
4) Using DBL_EPSILON
   This change allows smaller intervals for sliders/dials
5) QwtPanner
   setOrientation() added.
6) QwtPlot
   axisStepSize() added
   clear is virtual now
7) QwtPlotPrintFilter
   PrintCanvasBackground splitted into PrintBackground, PrintFrameWithScales
8) QwtPlotZoomer
   setZoomStack() added
9) Changes for the QwtPolar package
   QwtLegendItemManager introduced
   QwtMagnifier introduced
10)Suffix rules added in qwtconfig.pri for different targets for
   debug/release builds.

Bug Fixes
---------
1. QwtAbstractScaleDraw::setAbstractScaleDraw
   Reinitialization problem fixed
2. QwtLegendItem
   key event handlers fixed
3. QwtPicker
   solaris-cc compiler problem fixed
4. Inaccurate mapping of scale to widget coordinates fixed
5. QwtPlotCurve::draw
   Updates for Qt 4.3 added
6. QwtPlotLayout
   AlignToCanvas layout calculation fixed
7. QwtPlot::print
   Workaround for a QPen initialization problem,
   when printing to Pdf, added
8. QwtText
   Layout of rich text documents fixed
9. Designer
   Handling of QwtScaleWidget fixed
10. realtime example
   Qt::WA_PaintOutsidePaintEvent added, ScrollZoomer fixed
11. Several others I have forgotten

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
Matthias Pospiech | 30 Apr 16:11
Picon
Picon

QwtRasterData *copy() does not delete data

When I use my spectrogram plot and plot a few 100 times, my memory is at 
its end.
This is caused by the copy of QwtRasterData :

    virtual QwtRasterData *copy() const
    {
        SpectrogramData *clone = new SpectrogramData();
        clone->setRangeX(m_RangeX.min, m_RangeX.max);
        clone->setRangeY(m_RangeY.min, m_RangeY.max);
        clone->setBoundingRect(QwtDoubleRect(m_RangeX.min, m_RangeY.min, 
m_RangeX.max, m_RangeY.max));
        clone->setData(m_Array, m_DataSize.x, m_DataSize.y);
        return clone;
    }

this calls setData which saves to array to the 'clone'

    void setData(double * Array, int sizex, int sizey)
    {
        int size = sizex * sizey;
        if (m_Array != NULL)
            delete [] m_Array;
        m_Array = new double [size];
        memcpy(m_Array, Array, size * sizeof(double));
    }

The clone always has m_Array == NULL, since it always created new. So

        m_Array = new double [size];
is always excecuted within the clone, but never deleted by the 
QwtRasterData class.

How do I solve this problem?

Matthias

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone

Gmane