Results 1 to 4 of 4

Thread: How to scale a curve

  1. #1
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default How to scale a curve

    I have a realtime plot with many curves having different range of values. One has range from 1000 to 10000 and other from 0.1 to 2 for example.

    How can I scale a curve so that they would be drawn close together?

    Also is it possible to draw several y axis next to each other? Thanks.

  2. #2
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to scale a curve

    Is the only way to scale y-values before drawing a curve to multiply all y-values with some factor ?

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

    Default Re: How to scale a curve

    You could also overload QwtPlotCurve::drawSeries, where you manipulate the scale maps.

    Uwe

  4. #4
    Join Date
    Jun 2012
    Posts
    63
    Thanks
    5
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: How to scale a curve

    Thanks Uwe for your reply. I'll try it and let you know.

Similar Threads

  1. Replies: 1
    Last Post: 31st October 2011, 14:23
  2. Replies: 2
    Last Post: 23rd August 2011, 12:23
  3. curve scale help needed
    By butlermog in forum Qwt
    Replies: 0
    Last Post: 13th July 2010, 14:40
  4. Replies: 4
    Last Post: 29th April 2010, 06:11
  5. Replies: 1
    Last Post: 22nd January 2010, 14:34

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.