Results 1 to 2 of 2

Thread: how to adjust X axis scale range under setAxisAutoScale(QwtPlot::xBottom) usage

  1. #1
    Join Date
    Apr 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Question how to adjust X axis scale range under setAxisAutoScale(QwtPlot::xBottom) usage

    Hi all,

    I am using Qwt 5.2.1 on SLES 9 SP4.

    I am modifying a qwt project resembles data_plot example. Everything is fine except the range of x axis is too short when setAxisAutoScale(QwtPlot::xBottom) is used. The range of X axis is about 1.0 now.

    Note that X axis value is synchronized with current time. So this plot shows a value with the specified current time over 100 time of history. I set double d_x[100], d_y[100] array to hold the history data.

    I want to expand the X axis scale range to 100 in order to see the whole history of data flow.

    How can I do it?

    I want to use setAxisAutoScale() since there are some blinking on the plot when setAxisScale(QwtPlot::xBottom, 0, PLOT_SIZE). Actually I test it with setAxisScale(QwtPlot::xBottom, currTime - 15, currTIme + 15) to show the current data on the middle of plot window. But, there are blinkiing on the plot window.

    Bye.

    Cheol

  2. #2
    Join Date
    Apr 2010
    Posts
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows

    Default Re: how to adjust X axis scale range under setAxisAutoScale(QwtPlot::xBottom) usage

    It is solved. I confused.

    Cheol

Similar Threads

  1. Replies: 5
    Last Post: 17th June 2014, 15:20
  2. xBottom Scale Overide
    By baray98 in forum Qwt
    Replies: 7
    Last Post: 7th July 2011, 05:15
  3. Replies: 4
    Last Post: 11th July 2010, 09:47
  4. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10
  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.