Results 1 to 5 of 5

Thread: Scatter plot with many colors

  1. #1
    Join Date
    Jun 2008
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Scatter plot with many colors

    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.

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Scatter plot with many colors

    What is the meaning of the colors in your case ?

    Uwe

  3. #3
    Join Date
    Jun 2008
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Scatter plot with many colors

    Hello.

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

    Thanks.

  4. #4
    Join Date
    Jun 2008
    Posts
    7
    Thanks
    2
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: Scatter plot with many colors

    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.

  5. #5
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,312
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Scatter plot with many colors

    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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.