Results 1 to 2 of 2

Thread: Auto-scaling not enabled

  1. #1
    Join Date
    Dec 2011
    Location
    Bangalore,India
    Posts
    38
    Thanks
    14
    Qt products
    Qt4
    Platforms
    Windows

    Default Auto-scaling not enabled

    hi,
    autoscaling is not happening in the y axis, please can anyone help me out ..

    plot = new DataPlot(this);
    plot->setAxisTitle(QwtPlot::xBottom, "Data");
    plot->setAxisAutoScale(QwtPlot::yLeft);
    plot->setAxisScale(QwtPlot::xBottom, 0,1200);
    plot->setAxisScale(QwtPlot::yLeft,-500,2500);
    plot->setAxisAutoScale(QwtPlot::yLeft);

    can any one help me out thanks in advance..

    Regard,
    kulasekaran

  2. #2
    Join Date
    Dec 2013
    Location
    Toronto, Canada
    Posts
    62
    Thanked 16 Times in 15 Posts
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Auto-scaling not enabled

    autoscaling is not happening in the y axis, please can anyone help me out ..
    plot->setAxisScale(QwtPlot::yLeft,-500,2500);
    plot->setAxisAutoScale(QwtPlot::yLeft);
    For a particular axis
    setAxisScale() turns auto scaling off
    setAxisAutoScale() turns auto scaling on

    Calling setAxisScale() on a particular axis is not usually followed by a call to setAxisAutoScale(..., true) on the same axis

    Nevetheless if
    plot->setAxisAutoScale(QwtPlot::yLeft);
    is truly the last call affecting scaling mode on the yLeft, autoscaling is enabled and the scale should adjust on the next replot()

Similar Threads

  1. Plot auto-scaling
    By ccbaci in forum Qwt
    Replies: 3
    Last Post: 14th September 2013, 11:59
  2. improve the auto scaling of axis
    By 21did21 in forum Qwt
    Replies: 7
    Last Post: 7th July 2011, 20:26
  3. Y axis not auto scaling
    By pkj in forum Qwt
    Replies: 0
    Last Post: 12th May 2011, 17:05
  4. QLabel - auto font scaling possible?
    By Byngl in forum Qt Programming
    Replies: 1
    Last Post: 11th October 2007, 17:50

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.