Results 1 to 3 of 3

Thread: logarithmic scales

  1. #1
    Join Date
    Dec 2010
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default logarithmic scales

    Hi guys,
    I'm using a logarithmic scale defined by this function

    Qt Code:
    1. setAxisScaleEngine(xBottom, new QwtLog10ScaleEngine);
    To copy to clipboard, switch view to plain text mode 

    but this can't regroup the values in the axis like this example:



    any idea how to do this ?

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

    Default Re: logarithmic scales

    Also setting the right values for the scale ?

    Qt Code:
    1. setAxisScale( QwtPlot::xBottom, 1e4, 2 * 1e6 );
    To copy to clipboard, switch view to plain text mode 

    Maybe you also want to implement your own QwtScaleDraw object for returning richtext tick labels with superscripts ( or use the mathml textengine of Qwt 6 ).

    Uwe

  3. #3
    Join Date
    Dec 2010
    Posts
    6
    Thanks
    1
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: logarithmic scales

    Thanks Uwe,
    i have any idea how to do this please can u forgive me an example.

Similar Threads

  1. graphing logarithmic data
    By vonCZ in forum General Programming
    Replies: 1
    Last Post: 24th March 2010, 14:15
  2. Scaling and zooming with logarithmic scales
    By Benoît Hubert in forum Qwt
    Replies: 1
    Last Post: 11th September 2008, 09:17
  3. logarithmic scale
    By Times in forum Qwt
    Replies: 2
    Last Post: 1st July 2008, 15:41
  4. Problem with scales
    By fear in forum Qwt
    Replies: 2
    Last Post: 5th May 2008, 22:18
  5. Replies: 2
    Last Post: 14th March 2008, 12:38

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.