Results 1 to 3 of 3

Thread: Set offset for first scale line in the plot

Hybrid View

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

    Default Re: Set offset for first scale line in the plot

    In general there is a date/time based scale system ( QwtDateScaleEngine + QwtDateScaleDraw ), that creates useful ticks for date/time scales.
    But from your code it looks like you need a scale that displays the time elapsed since some point in time. This would be a different type of scale engine ( on my TODO list for quite some time ).

    To make it short: you also need to implement a scale engine, what mostly means to provide 2 algos for aligning a given interval and then finding the ticks.

    Uwe

  2. #2
    Join Date
    Oct 2016
    Posts
    7
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Re: Set offset for first scale line in the plot

    Thanks for the response uwe!!

    Yes, in my case I have scaling working for me but only thing is it automatically displays the scale which I want to stream line so that my Major Ticks are drawn at round figure time like 8.00, 9.00, 10.00 based on my tick size as 60 minutes

    So, here I think if I am able to set the position for first major tick then rest will fall in line, is it possible?

    I was looking at QwtScaleDiv class but did not get much information on how I can utilize it.

    I am trying to set the QList of Major ticks (not yet achieved) to set the position of my major ticks to see if it helps me.

    Thanks
    /SP

Similar Threads

  1. Auto scale, but no plot data
    By pdm in forum Qwt
    Replies: 2
    Last Post: 20th November 2015, 15:18
  2. How to plot scale on the canvas
    By baoxuefei771 in forum Qwt
    Replies: 2
    Last Post: 29th May 2013, 19:59
  3. QwtPlot offset between Canvas and Scale
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 13:31
  4. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10
  5. how to hide the scale in qwt plot
    By babu198649 in forum Qwt
    Replies: 2
    Last Post: 7th March 2008, 06:38

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
  •  
Qt is a trademark of The Qt Company.