Results 1 to 9 of 9

Thread: How to change axis scale with out changing data series?

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #8
    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: How to change axis scale with out changing data series?

    The conversion from FFT bin to frequency is a simple scale factor
    Ok, lets call this factor 'f'.
    I am not sure I have understood your suggestions therefore.
    Assuming you have your values in m_data, what is an array of doubles:

    Qt Code:
    1. virtual QPointF YourSeriesData::sample(size_t i) const
    2. {
    3. return QPointF( f * toFFTbin(i), m_data[i]); // do your scaling here
    4. }
    To copy to clipboard, switch view to plain text mode 

    Uwe
    Last edited by Uwe; 24th April 2010 at 10:19.

Similar Threads

  1. Replies: 1
    Last Post: 19th May 2009, 11:14
  2. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10
  3. Axis with a probability scale
    By Lister in forum Qwt
    Replies: 1
    Last Post: 5th May 2009, 06:45
  4. Axis won't stay at new scale setting
    By Maxicatten in forum Qwt
    Replies: 5
    Last Post: 9th April 2009, 04:03
  5. 4 axis auto scale..
    By Vincenzo in forum Qwt
    Replies: 0
    Last Post: 22nd March 2009, 01:12

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.