Results 1 to 2 of 2

Thread: QwtPlot - how to change the distance between axisTitle and axis

  1. #1
    Join Date
    Feb 2009
    Location
    Germany
    Posts
    3
    Thanks
    1
    Qt products
    Qt4
    Platforms
    MacOS X Unix/X11 Windows

    Default QwtPlot - how to change the distance between axisTitle and axis

    Hello,

    can anybody tell me how to change the distance between the axis titles (not the labels!) and the axes of my plot? The default distance seems a bit narrow to me. It also happens that the axis title is "overwritten" by the axis and tick labels, i.e. only a part of it is visible.

    Thanks a lot,
    Dirk

  2. #2
    Join Date
    Feb 2006
    Location
    Munich, Germany
    Posts
    3,277
    Thanked 871 Times in 819 Posts
    Qt products
    Qt3 Qt4 Qt/Embedded
    Platforms
    MacOS X Unix/X11 Windows

    Default Re: QwtPlot - how to change the distance between axisTitle and axis

    Qt Code:
    1. plot->axisWidget(...)->setSpacing(...);
    To copy to clipboard, switch view to plain text mode 
    But when title and tick labels are overlapping there is a bug in the layout code of QwtScaleWidget or you are doing something behind the back of the Qt framework and the layout code is not executed.

    Uwe

  3. The following user says thank you to Uwe for this useful post:

    Carlton (5th September 2010)

Similar Threads

  1. Axis direction change
    By ysnegirev in forum Qwt
    Replies: 1
    Last Post: 7th December 2009, 09:05
  2. Replies: 2
    Last Post: 30th June 2009, 17:08
  3. Replies: 1
    Last Post: 19th May 2009, 11:14
  4. QwtPlot axis decmials/notation
    By dfirestone in forum Qwt
    Replies: 1
    Last Post: 1st May 2009, 10:42
  5. Replies: 10
    Last Post: 18th September 2008, 15:14

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.