Results 1 to 4 of 4

Thread: Plot does not refresh

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    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: Plot does not refresh

    Depends on the implementation of YourData::copy. If it is implemented as deep copy you have to call curve->setData() after each value change. Otherwise QwtPlot::replot should do what you want. ( QwtPlotItem::itemChanged() has only an effect, for auto-replotting ).

    Uwe

  2. #2
    Join Date
    Oct 2009
    Posts
    4
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Plot does not refresh

    Hi Uwe,

    Thank you for your reply.

    My implementation of QwtData::copy is indeed a deep copy.
    Even after resetting the Data (QwtPlotCurve::setData), replotting (QwtPlot::replot), detaching and reattaching the QwtPlotCurve, nothing changes, the plot remains the same (the state of my data class is taken account of the first time, but then changing it doesn't yield the replot).

    I'll try coding something quickly to show you,

    Thanks,
    M.

Similar Threads

  1. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 14:36
  2. Embedding Qwt plot High Resolution
    By giusepped in forum Qwt
    Replies: 7
    Last Post: 21st April 2009, 10:44
  3. Spectrogram Plot Hints
    By shargath in forum Qwt
    Replies: 2
    Last Post: 25th February 2009, 12:11
  4. Replies: 7
    Last Post: 22nd September 2008, 23:05
  5. Reg multiple plots in Qwt
    By Tavit in forum Qwt
    Replies: 4
    Last Post: 23rd June 2008, 14:43

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