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. #1
    Join Date
    Jan 2010
    Posts
    28
    Thanks
    4
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default How to change axis scale with out changing data series?

    I have an FFT to plot. The FFT data is stored in a QwtSeriesData object (this is Qwt6 and Qt4.6.2 BTW) so it is stored as a magnitude only, with the sample position (index) being the x-axis value.

    When plotted in this form I have a graph which shows the FFT as magnitude (dBFS) on the y-axis against FFT sample bin on the x-axis (the sample bin is effectively the FFT point size).

    This is OK for some applications as knowing the frequency bin in useful, however it is more normal to plot the FFT as magnitude against frequency. The conversion from FFT bin to frequency is a simple scale factor. Is it possible to do this by simply modifying the way the x-axis is scaled?

    I am sure this is possible, but maybe the search criteria I have tried do match anything posted on the forum, so possible apologies in advance if this is an obvious answer. Or if its in the Qwt docs maybe again I am looking at the wrong thing. I thought it was something to do with the scale engines but am not so sure now.

    Cheers

    Oh forgot to say, I am plotting multiple curves on a single plot and was using the auto scale to set the appropriate scale for all plots. Not sure if this changes how this is done.
    Last edited by mike_the_tv; 22nd April 2010 at 16:13.

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.