Results 1 to 1 of 1

Thread: Total axis scale remodelation

  1. #1
    Join Date
    May 2011
    Posts
    1
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Question Total axis scale remodelation

    Hi!! Quite a question here, I think...

    I need the Y axis of a plot to have a continuous scale that fits 0, 20, 40, 100, 120, 140, 200... That is, labels every +20, +20, +60. Another requisite is that the space between ticks is always the same (say, one label every 20 pixels).

    Question is... how can I accomplish this? I'm currently trying to subclass QwtScaleDiv, QwtScaleDraw and QwtScaleEngine, but I don't seem to have enough knowledge of Qwt to do it properly. I'm also looking at friedberg and oscilloscope examples...

    Any help would be greatly appreciated!!


    PS: truly great component, this one!!
    PPS: just to get the big picture, I'm plotting seconds into the Y-axis. I need the aforementioned nonlinear scale (+20, +20, +60), while I will be plotting continuous values into the graph. The X-axis contains GPS' heading values, so it's a time-heading graph.

    PPPS: sorry for changing the whole post!! XD situation here changed so quickly...
    --
    Last edited by iytenorio; 27th May 2011 at 12:48.

Similar Threads

  1. Replies: 9
    Last Post: 3rd May 2011, 22:21
  2. QwtPlot fixed X-axis display
    By micc13 in forum Qwt
    Replies: 2
    Last Post: 3rd December 2010, 13:28
  3. Small QPushButton possible? (less than 75 units)
    By masterlaws in forum Qt Programming
    Replies: 3
    Last Post: 4th December 2009, 20:09
  4. The application with connected units.
    By kuzulis in forum Qt Programming
    Replies: 1
    Last Post: 17th January 2009, 00:54
  5. fixed axis scales
    By oskarmellow in forum Qwt
    Replies: 1
    Last Post: 17th December 2008, 07:20

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.