Results 1 to 2 of 2

Thread: Trying to use QColormap in order to graph curves with different colors in Qwt.

  1. #1
    Join Date
    Jun 2011
    Posts
    17
    Qt products
    Qt3
    Platforms
    MacOS X

    Default Trying to use QColormap in order to graph curves with different colors in Qwt.

    There is not much documentation on how to use QColormap so I am wondering if it will work for my purposes. Basically I have plots that have any number of curves on them. So I want to create a color map with the required amount of colors when I am plotting so that each can have its own unique color. Is QColormap the right way to go? My other option that I have been looking at was from some Matlab code in which a Matrix of RBG values can be generated and then used to define a color for each curve.

  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: Trying to use QColormap in order to graph curves with different colors in Qwt.

    So I want to create a color map with the required amount of colors when I am plotting so that each can have its own unique color. Is QColormap the right way to go?
    No.
    My other option that I have been looking at was from some Matlab code in which a Matrix of RBG values can be generated and then used to define a color for each curve.
    Maybe spend some time on understanding what RGB values are. You don't need any 3rd party software to implement something trivial like this.

    Uwe

Similar Threads

  1. qwt several curves at a plot
    By freude3 in forum Qwt
    Replies: 4
    Last Post: 4th January 2011, 07:45
  2. qwt display curves
    By sergio486 in forum Qt Programming
    Replies: 0
    Last Post: 11th December 2010, 21:27
  3. Information about curves
    By den in forum Qwt
    Replies: 1
    Last Post: 27th April 2010, 19:02
  4. Replies: 1
    Last Post: 7th April 2010, 16:26
  5. Multiple curves on top of each other
    By jmsbc in forum Qwt
    Replies: 2
    Last Post: 15th July 2009, 19:46

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.