Results 1 to 3 of 3

Thread: Help with QwtPlot and QwtPlotCurve. Draw Lines.

  1. #1
    Join Date
    May 2008
    Location
    Spain
    Posts
    90
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Help with QwtPlot and QwtPlotCurve. Draw Lines.

    Hello,

    I have a application with QwtPlot with two curves and it works fine.
    Now I am interesting in draw vertical lines between two curves, but I do not know how to do it. It likes fill the zone between two curves.

    Is it possible to do it???

    Best regards.

  2. #2
    Join Date
    May 2008
    Location
    Spain
    Posts
    90
    Thanks
    13
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default Re: Help with QwtPlot and QwtPlotCurve. Draw Lines.

    Well. after surfing in the net, I have found
    Qt Code:
    1. setRawData(d_x, d_limit4, PLOT_SIZE);
    2. setBrush(QBrush(Qt::green, Qt::Dense7Pattern));
    3. setCurveType(QwtPlotCurve::Yfx);
    4. setBaseline(5000.0)
    To copy to clipboard, switch view to plain text mode 

    The efect of this code in my plot is to fill area between baseline and curve, but I do not find any solution to fill area between two curves.

  3. #3
    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: Help with QwtPlot and QwtPlotCurve. Draw Lines.

    A curve is intended for displaying points not for intervals.

    You find an implementation of an item displaying intervals in the development branch ( trunk ) of Qwt: http://qwt.svn.sourceforge.net/viewv...31&view=markup

    The errorbars example shows how to use it.

    Uwe

Similar Threads

  1. Replies: 2
    Last Post: 14th April 2008, 11:03

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.