PDA

View Full Version : Scatter plot with many colors



DKL1972
28th June 2008, 04:37
How would I go about creating a Scatter Plot (QwtPlotCurve with a NoCurve style and a QwtSymbol) using many colors for the symbols instead of just one?

Thanks.

Uwe
28th June 2008, 10:24
What is the meaning of the colors in your case ?

Uwe

DKL1972
28th June 2008, 15:30
Hello.

I am trying to use color intensity to represent different values at a specific point (a third dimension).

Thanks.

DKL1972
28th June 2008, 16:56
The only way I came up with is to implement my own MyCurvePlot and override drawSymbols with my own colors before drawing each symbol. Is this the best way?

Thanks.

Uwe
29th June 2008, 12:15
Yes, it is.

A special curve that displays 3D points, where the z-value is mapped to a color using a QwtColorMap is on my TODO list for Qwt 5.2. Maybe have a look at the QwtSeriesItem/QwtSeriesData templates in SVN trunk ( = 5.2 branch ), that make such an implementation much easier, than with Qwt 5.1.

Uwe