Results 1 to 3 of 3

Thread: Very very long Plot

  1. #1
    Join Date
    Jan 2010
    Location
    UK
    Posts
    12
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Very very long Plot

    This is a newbie question. I'm looking for guidance on how best to plot a long chart.

    I have to plot a very long chart - potentially several million points. Also, the user can zoom in so the virtual chart can be 100 million pixels long.

    The data is accessed via a QAbstractTableModel.

    Is this a suitable task for the Qwt widgets?

    Thanks
    Bob

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,325
    Thanked 879 Times in 827 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Very very long Plot

    The number of points have an impact on the painting performance. After writing a QwtData object, that forwards the points from your model, you will see if it is fast for your needs. If not:

    a) Don't use a model. Passing trillions of points through this fat API hurts.
    b) Implement different level of details depending on the zoom level to reduce the number of points.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    BobTheProg (27th January 2010)

  4. #3
    Join Date
    Jan 2010
    Location
    UK
    Posts
    12
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Very very long Plot

    Thanks, Uwe. I'll rework the strategy to bypass the model stuff.

    Bob

Similar Threads

  1. Put plot axis out of the plot
    By KosyakOFF in forum Qwt
    Replies: 7
    Last Post: 21st June 2013, 13:36
  2. buton text long ?
    By electronicboy in forum General Programming
    Replies: 3
    Last Post: 2nd November 2009, 10:21
  3. Best way to abort long SQL query?
    By wdezell in forum Newbie
    Replies: 1
    Last Post: 11th September 2009, 22:05
  4. Replies: 7
    Last Post: 22nd September 2008, 22:05
  5. what to do during long calculation?
    By Weilor in forum Qt Programming
    Replies: 4
    Last Post: 14th September 2007, 12: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
  •  
Qt is a trademark of The Qt Company.