Results 1 to 1 of 1

Thread: Y axis not auto scaling

  1. #1
    Join Date
    Feb 2011
    Location
    Bangalore
    Posts
    207
    Thanks
    20
    Thanked 28 Times in 27 Posts
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Y axis not auto scaling

    I wanted to have a graph with x axis as date time. So I took cue from cpu plot example and subclass QwtScaleDraw in pretty much the same way.
    After I QwtPlot::setAxisScaleDraw() xbottom with the new subclass, the Y axis doesn't scale. It shows 1 to 1000 i.e. the default.
    I roamed around this thread a little and found QwtPlot::setAxisScale disables auto scaling. Not knowing if it is called implicitly I used QwtPlot::setAxisAutoScale(yleft) before replot() but y axis still shows the default 1 to 1000.
    What am i doing wrong??


    Added after 18 minutes:


    Ok Ok .. My Bad... I was deserializing from file... somehow while creating the object again i attached all the curves to the right y axis... Oops...
    Last edited by pkj; 12th May 2011 at 17:05.

Similar Threads

  1. Replies: 9
    Last Post: 3rd May 2011, 22:21
  2. Replies: 0
    Last Post: 9th August 2010, 11:46
  3. 4 axis auto scale..
    By Vincenzo in forum Qwt
    Replies: 0
    Last Post: 22nd March 2009, 02:12
  4. Scaling Painter without scaling the coordinate sytem
    By maverick_pol in forum Qt Programming
    Replies: 4
    Last Post: 7th January 2008, 22:30
  5. QLabel - auto font scaling possible?
    By Byngl in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 17:50

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.