Results 1 to 3 of 3

Thread: Y Axis tick labels cut off on left

  1. #1
    Join Date
    Nov 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Y Axis tick labels cut off on left

    We are using 6.0.1 release of QWT.
    We have a problem with displaying the left scale tick labels (Y Axis). Labels are numeric.

    Sometimes QwtPlot graphs will not update the width of the scale correctly such that when adding another digit
    to any of the numbers on the scale, the left most digit will be cut off. For example when going
    from 999 to 1,000, the display will read ,000.

    The caveat to this is that the graph is not visible when it is updated. We have two graphs
    on top of each other. We can toggle between each one being visible at a time. Both are being
    updated as though they are visible. If the scale on the invisible graph changes such that another
    digit is added, when we toggle to the invisible graph we see the effect.

    The graph is dynamically updated periodically with one or more data points added each time.
    If the previously invisible graph is redrawn with another set of data, it will fix itself and
    draw correctly.

    I have tried this with autoscale on and off - both cause the problem.

  2. #2
    Join Date
    Sep 2011
    Location
    Manchester
    Posts
    538
    Thanks
    3
    Thanked 106 Times in 103 Posts
    Qt products
    Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: Y Axis tick labels cut off on left

    Set some width of the left axis using
    Qt Code:
    1. QwtScaleDraw::setMinimumExtent()
    To copy to clipboard, switch view to plain text mode 

  3. #3
    Join Date
    Nov 2011
    Posts
    2
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: Y Axis tick labels cut off on left

    Thanks, Spitfire.

    I will give that a try.

Similar Threads

  1. Replies: 1
    Last Post: 23rd June 2010, 09:20
  2. Axis Tick Labels Overlap
    By amoswood in forum Qwt
    Replies: 3
    Last Post: 8th June 2010, 15:52
  3. y-axis tick labels trimmed
    By gib in forum Qwt
    Replies: 2
    Last Post: 2nd April 2010, 05:19
  4. Tick Labels for Slider
    By jcraig in forum Qt Tools
    Replies: 2
    Last Post: 9th August 2007, 17:21
  5. QSlider with a custom set of labels for the tick marks?
    By whitefurrows in forum Qt Programming
    Replies: 3
    Last Post: 5th August 2007, 16:05

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.