Results 1 to 2 of 2

Thread: qwt log scale Limits

  1. #1
    Join Date
    May 2015
    Posts
    2
    Qt products
    Qt5 Qt/Embedded
    Platforms
    Unix/X11

    Default qwt log scale Limits

    Hi,

    I am plotting a curve with magnitude in dBs and frequency from 0Hz to 20Khz on linear scale. I generate a simple linear frequency array. Now I want to view my Curve on a typical log scale that is used in audio players. But I don't know how ?

    I tried adding this to my code.
    Qt Code:
    1.  
    2.  
    3. plot->setAxisScaleEngine(QwtPlot::xBottom, qwtlog);
    To copy to clipboard, switch view to plain text mode 

    This does work but my x axis scale starts at 1E-100 and ends at 1. I want to change its limits so that it goes from 0 to 20KHz like this

    http://machrone.home.comcast.net/~ma...tave_sweep.gif

    Can anyone help me as to what should I do ?

  2. #2
    Join Date
    Sep 2014
    Location
    Sydney, Australia
    Posts
    16
    Thanks
    2
    Thanked 2 Times in 2 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: qwt log scale Limits

    This thread is pretty old so I hope you've found a solution by now but from the documentation of 'QwtLog10ScaleEngine' it seems you should be calling: qwtlog->autoScale(<maxNumSteps>, 0, 20000, <stepSize>)
    "When the only tool you have is a hammer, every problem resembles a nail"

Similar Threads

  1. Replies: 1
    Last Post: 9th September 2013, 07:50
  2. qwt log scale Y and linear scale X
    By Annihilator in forum Qwt
    Replies: 1
    Last Post: 31st December 2012, 10:01
  3. qwt Scale
    By David812 in forum Qwt
    Replies: 3
    Last Post: 24th May 2011, 08:43
  4. logarithmic scale
    By Times in forum Qwt
    Replies: 2
    Last Post: 1st July 2008, 15:41
  5. qwt 5 log scale..
    By halberdier83 in forum Qwt
    Replies: 7
    Last Post: 12th November 2007, 07:21

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.