Results 1 to 3 of 3

Thread: QwtPlot reset (clear samples)

  1. #1
    Join Date
    Jun 2012
    Posts
    3
    Qt products
    Qt4
    Thanks
    1

    Default QwtPlot reset (clear samples)

    Hello,
    how to delete all data from QwtPlotItems attached to QwtPlot? I need to reset my QwtPlot so there is nothing plotted on it.

    Thank you

    Martin

  2. #2
    Join Date
    May 2012
    Location
    Bangalore, India
    Posts
    271
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Unix/X11 Windows
    Thanks
    29
    Thanked 50 Times in 47 Posts

    Default Re: QwtPlot reset (clear samples)

    See example realtime.There they have added a functionality for clear.

  3. #3
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,326
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows
    Thanked 880 Times in 828 Posts

    Default Re: QwtPlot reset (clear samples)

    QwtPlot is derived from QwtPlotDict. How to "clear" a plot item depends on the type of plot item, f.e. for QwtPlotCurve simply assign data without points.

    Uwe

Similar Threads

  1. Replies: 2
    Last Post: 5th November 2012, 08:48
  2. Replies: 1
    Last Post: 9th February 2010, 12:11
  3. Replies: 2
    Last Post: 5th December 2008, 20:11
  4. Replies: 1
    Last Post: 9th February 2008, 12:46
  5. reset QwtPlot
    By sarefo in forum Qwt
    Replies: 1
    Last Post: 24th January 2008, 08:00

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
  •  
Qt is a trademark of The Qt Company.