Results 1 to 5 of 5

Thread: how to speed up the replot?

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Apr 2008
    Posts
    32
    Thanks
    3
    Thanked 5 Times in 5 Posts
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Re: how to speed up the replot?

    Please describe your plot composition and all elements that you have on this plot.

    If plot have big amount of elements or spectrogram on it (redrawing spectrogram takes large amount of calculations and time even if value() impl. is quick then size of spectrogram is big) replot should take much time.

    For spectrogram i suggest set repaint parameter to resizeOnly. As for markers and plot I suggest to draw markers on overlay widget. In this case you don't have to replot after changing their position, just redraw an overlay widget.

  2. #2
    Join Date
    Nov 2009
    Posts
    94
    Thanks
    14
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: how to speed up the replot?

    Finally I have found out what was the reason for very slow plot behavior: I have set the flag
    Qt Code:
    1. this->setAutoReplot(true);
    To copy to clipboard, switch view to plain text mode 
    for the QwtPlot and this was obviosly the reason for the slow replot, because after I deleted this line, the replot last far less than 1 second (in contrast to 4 seconds before). It is very fast now. Also the dragging of markers is now very fast and they are reploted all together at once, so that one cannot see the FOR loop, as it could be seen before.

    best regards,

    Vitali

Similar Threads

  1. how to accelerate the replot?
    By rambo83 in forum Qwt
    Replies: 6
    Last Post: 17th March 2010, 11:11
  2. Replies: 5
    Last Post: 21st March 2009, 09:10
  3. Replot large wav file data
    By Sachtech in forum Qwt
    Replies: 1
    Last Post: 6th January 2009, 09:12
  4. Replies: 6
    Last Post: 22nd September 2008, 11:53
  5. Speed up Producer Consumer Threads
    By ^NyAw^ in forum Qt Programming
    Replies: 7
    Last Post: 29th February 2008, 18:38

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.