Results 1 to 3 of 3

Thread: Multiple curves on top of each other

  1. #1
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default Multiple curves on top of each other

    Hi,

    I have 3 curves that need to be plotted. One of the curves needs to stay on top to be seen no matter what order they are all drawn. Is there a simple way to do this?

    Thank you.

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

    Default Re: Multiple curves on top of each other

    Plot items are painted in order of their z-values. (QwtPlotItem::setZ()).

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    jmsbc (2nd July 2009)

  4. #3
    Join Date
    Apr 2008
    Posts
    53
    Thanks
    10

    Default Re: Multiple curves on top of each other

    Hi Uwe,

    Now I have another problem that is similar... I'm plotting a track that has two sides (right and left), and each side consists of red lines and green lines. Each side is being saved as a different curve (all the points for the green lines are 1 curve, and all the points for the red lines are in another curve):

    g---------------------g r---------------------r
    g---------------------g r---------------------r
    g---------------------g r---------------------r
    g---------------------g r---------------------r

    However when the track loops back to cut across a previously painted track, the green from the previous track will stay on top of the red from the current track since the green curve has lower Z value.

    Can you think of any way that I can fix that? Do you think it's a good idea to keep a Z value for each data point (line) in each curve? And then where would I look to control the painting for my user-defined Z value?

    Thanks.

Similar Threads

  1. Replies: 10
    Last Post: 18th September 2008, 15:14
  2. Replies: 1
    Last Post: 11th September 2008, 09:07
  3. Multiple project files in a single directory
    By jogeshwarakundi in forum Qt for Embedded and Mobile
    Replies: 5
    Last Post: 17th July 2008, 07:03
  4. Multi curves plotting issue
    By fallen in forum Qwt
    Replies: 5
    Last Post: 6th May 2008, 05:47
  5. how to corss compile for windows in Linux
    By safknw in forum Qt Programming
    Replies: 24
    Last Post: 13th May 2006, 05:23

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.