Results 1 to 3 of 3

Thread: how to Plot multiple graphs of multiple range ?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #2
    Join Date
    Nov 2007
    Posts
    55
    Qt products
    Qt4
    Platforms
    Windows
    Thanks
    1
    Thanked 9 Times in 9 Posts

    Default Re: how to Plot multiple graphs of multiple range ?

    the simplest way, but not the cleanest, specially if you want to use markers or cursors, is to rescale internally the x-values to get the same range for both datasets.
    So assuming you 1. dataset would have the values (x, y): (1000, 12), (2120, 15) ... (10000, 7)
    and the 2. dataset values (1, 6), (2.5, 14) ... (10, 8)
    rescale the 2. dataset to (1000, 6), (2500, 14) ... (10000, 8)
    Another equivalent way is to change the conversion factor from physical units into pixels on the canvas.
    In both cases, you might draw 2 different x-axis.

    Did you take a look at Qwt?
    If Qwt is too heavy for your need, take a look at KplotWidget from KDE. There are only very few changes to made to get it running on Qt.

    Alain

  2. The following user says thank you to alainstgt for this useful post:

    karankumar1609 (15th July 2013)

Similar Threads

  1. using one signal to update multiple multiple controls
    By henryjoye in forum Qt Programming
    Replies: 7
    Last Post: 13th December 2011, 14:19
  2. Replies: 2
    Last Post: 19th October 2011, 09:30
  3. Replies: 1
    Last Post: 17th May 2011, 16:12
  4. Replies: 5
    Last Post: 10th February 2010, 11:08
  5. Replies: 0
    Last Post: 21st December 2006, 11:48

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.