Results 1 to 4 of 4

Thread: QwtPlot with many curves and QwtPlotOVerlay

  1. #1
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    6

    Default QwtPlot with many curves and QwtPlotOVerlay

    Hello.

    I have QwtPlot at which I have f.e. 6 curves and each curve consist of many points ( f.e. near 1000 samples )...

    Than I want to draw when I move mouse some rectangle with information, for this I use QwtPlotOverlay at which I draw this info...

    But there is some lags when I move mouse and draw info. If I chagne number of sampels for each curve f.e. to 500, than it work good...
    All my info and rectangle I draw with help of QPainter...

    Why there is so bad performance? In example ItemEditor in Qwt all is good even if I set more shapes, but in my case performance depends on what are drawing at QwtPlot. What can be wrong?

  2. #2
    Join Date
    May 2012
    Posts
    136
    Thanks
    2
    Thanked 27 Times in 24 Posts
    Qt products
    Qt3 Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: QwtPlot with many curves and QwtPlotOVerlay

    High sample graphs take a lot of calculation power for drawing
    you can try using a Curvefitter, it reduces the amout of points (removing points that share a pixel) I use the QwtSplineCurveFitter the most

    also check post Qwt curve fitting takes a lot of time

  3. #3
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    33,359
    Thanks
    3
    Thanked 5,015 Times in 4,792 Posts
    Qt products
    Qt3 Qt4 Qt5 Qt/Embedded
    Platforms
    Unix/X11 Windows Android Maemo/MeeGo
    Wiki edits
    10

    Default Re: QwtPlot with many curves and QwtPlotOVerlay

    Show us some code. I have a plot with several thousands of samples and I don't have any significant slowdowns.
    Your biological and technological distinctiveness will be added to our own. Resistance is futile.

    Please ask Qt related questions on the forum and not using private messages or visitor messages.


  4. #4
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    6

    Default Re: QwtPlot with many curves and QwtPlotOVerlay

    Sorry, it was my bug...
    Thanks to all

Similar Threads

  1. Lining up 3 curves of a QwtPlot
    By pihentagy in forum Qwt
    Replies: 2
    Last Post: 18th February 2011, 14:38
  2. Replies: 1
    Last Post: 8th September 2010, 07:53
  3. Replies: 10
    Last Post: 18th September 2008, 15:14
  4. Replies: 1
    Last Post: 11th September 2008, 09:07
  5. Replies: 5
    Last Post: 18th March 2008, 16:11

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.