Results 1 to 6 of 6

Thread: QWT and time series

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Feb 2012
    Posts
    10
    Qt products
    Qt4

    Default QWT and time series

    Hi guys!

    Im currently trying to use QWT in my application, which is hugely using time series data. I have re-implemented QwtScaleDraw to put dates on x-axis, yet i have problems with graph itself. Problem is that the time points requested by QWT during axis drawing are nowhere near days/hours boundaries and seem fractional , so i can not put time labels because they represent nonexisting points in data( which is hourly ).
    Is there any way I can force QWT graph to use day and hour boundaries, like to put major axis labels straight on date 0:00 am , or select axis points among fixed set of possible values ?

    I also have some related questions :
    - how do i put overlay bar under graph to mark for example selected timespan ( ie day ) ? ( Assuming I have data range and I want to apply it to graph object )
    - if I provide a set of ~1000 data points to plot it become slow to rescale. Is there something I missed in plot parameters or it is normal qwt & desktop computer to work like this with datasets of this size? If latter is actual, should i do some data preprocessing to reduce ammount of points or there is some existing soluton, maybe inside qwt?

    Thanks in advance!

    PS: regarding rescale , i found that it is not dependent on data point count, but related to how it works with splitter adjacent to plot itself. I've attached sample code which shows a problem.
    slow_plot.zip

    Is it a known issue? does any workaround exist?
    Last edited by Neekeetos; 6th February 2012 at 09:21. Reason: additional data on mentioned

Similar Threads

  1. How to write code for the fibonacci series in Qt?
    By harish in forum Qt Programming
    Replies: 2
    Last Post: 16th December 2011, 04:28
  2. App for Series 40 phone
    By therohan in forum General Discussion
    Replies: 0
    Last Post: 19th July 2011, 06:17
  3. Widget for Animating a Series of Images
    By cpsmusic in forum Newbie
    Replies: 7
    Last Post: 30th June 2010, 06:44
  4. drawing series of rotated ellipses
    By qtn00b in forum Newbie
    Replies: 1
    Last Post: 17th December 2009, 01:51

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.