Results 1 to 5 of 5

Thread: 2D Line Plot with Colored Vertical Lines combined

  1. #1
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Smile 2D Line Plot with Colored Vertical Lines combined

    I am planning on using Qwt to plot 2D line plots, which will
    consist of real time floating point data as a function of time.
    I anticipate having two data streams, with separate Y axis
    content and a common x axis representing time.
    This requirement seems to be fulfilled with Qwt line plots.

    However, I have one sort of unique requirement. I need to
    have plotted colored vertical lines for the entire range of
    Y as various points in the x-axis timeline. These vertical
    lines demarcate segments in time. The number of vertical
    lines representing the maximum number of segments is no more
    than 10 over the entire range of x (time).

    Anyone ever attempt this? Any recommendations on the best
    way to implement such a thing? Can I achieve this with a separate
    data set at a particular value of x?

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

    Default Re: 2D Line Plot with Colored Vertical Lines combined

    Implement a new type of plot item for your vertical lines.

    Uwe

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

    bob2oneil (11th May 2011)

  4. #3
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: 2D Line Plot with Colored Vertical Lines combined

    I am a newbie on Qwt, can you be more specific? I would need a sequence of vertical lines, which would have full vertical height, but these data points could not be content that drives autoscaling vertically.
    How could a singular XY data point represent a range of Y for a single X.?

  5. #4
    Join Date
    Nov 2010
    Posts
    122
    Thanks
    62
    Thanked 3 Times in 3 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: 2D Line Plot with Colored Vertical Lines combined

    What about a QwtPlotMarker(). I would need a value that would be created dynamically, and the content of the marker spanning the entire range of Y would not be involved in autoscaling Y calculations.

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

    Default Re: 2D Line Plot with Colored Vertical Lines combined

    I didn't get 100% what you need, but have a look at QwtPlotIntervalCurve. Check the friedberg example and enable the bars mode.

    Uwe

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

    bob2oneil (16th May 2011)

Similar Threads

  1. Replies: 3
    Last Post: 18th June 2010, 13:18
  2. plot with hor. lines and text
    By hugo vanwoerkom in forum Qwt
    Replies: 2
    Last Post: 10th March 2010, 17:00
  3. Replies: 0
    Last Post: 26th November 2009, 15:49
  4. Draw vertical Line in QTextEdit
    By ericV in forum Qt Programming
    Replies: 3
    Last Post: 22nd July 2009, 15:50
  5. how to show vertical lines between colums
    By thomasjoy in forum Qt Programming
    Replies: 4
    Last Post: 22nd August 2007, 15:03

Tags for this Thread

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.