Results 1 to 2 of 2

Thread: Best way to avoid overlapping X-Axis Labels

  1. #1
    Join Date
    Mar 2018
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Best way to avoid overlapping X-Axis Labels

    Hi. I am brand new to Qwt, I have 1 year of Qt experience, and many years w/C++. I am using: Qwt 6.1.3, Qt 551, Visual Studio 2013.

    My first-ever Qwt task is to eliminate the occasional x-axis date label overlap that occurs when zooming in and out on a QwtPlot in our existing code base - image attached. I know this has been discussed in past posts [referenced below] but which one is best? Is there something better? I'm interested to know how people are managing/avoiding this. Thank you!


    Prior Discussions:
    http://www.qtcentre.org/threads/6008...idget-s-extent
    http://www.qtcentre.org/threads/3136...Labels-Overlap
    http://www.qtcentre.org/threads/4995...t-x-axis-label
    http://www.qtcentre.org/threads/4492...-and-last-tick
    Attached Images Attached Images

  2. #2
    Join Date
    Mar 2018
    Posts
    2
    Qt products
    Qt5
    Platforms
    Windows

    Default Re: Best way to avoid overlapping X-Axis Labels

    I was able to check the intersection of the bounding label QRects to detect x axis label overlap. Most likely I'll rotate labels, or skip every other major tick label when overlap occurs. All set.

Similar Threads

  1. Can an Axis' Labels be Redrawn?
    By TEAmerc in forum Qwt
    Replies: 1
    Last Post: 4th November 2015, 08:19
  2. Avoid scientific format for axis
    By qt_developer in forum Qwt
    Replies: 1
    Last Post: 9th June 2014, 21:42
  3. Qwt dynamic x axis labels
    By K4ELO in forum Qwt
    Replies: 4
    Last Post: 15th March 2013, 22:06
  4. Labels on axis.
    By eugene in forum Qwt
    Replies: 5
    Last Post: 6th August 2010, 14:30
  5. Axis with more labels
    By rakkar in forum Qwt
    Replies: 1
    Last Post: 11th October 2009, 10:26

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.