Results 1 to 4 of 4

Thread: Align x-axis to enabled x-axis

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Oct 2015
    Posts
    50
    Qt products
    Qt5
    Platforms
    Windows
    Thanks
    4

    Default Re: Align x-axis to enabled x-axis

    I think i have to overload the resize event but I still don't get how to get the size of the axis title rect.

    How can I align my axis if the label of my yLeft title takes 2 rows or more? Or if there is a label for only 1 axis?


    How do I set the width of all my legends to the same size?


    And how do I get a fixed size for my canvas and align everything in the plot to it?
    Attached Images Attached Images

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

    Default Re: Align x-axis to enabled x-axis

    And how do I get a fixed size for my canvas and align everything in the plot to it?
    This mode doesn't exist and the fact that it is missing is the reason for all these nasty workarounds when having to align plots.

    How can I align my axis if the label of my yLeft title takes 2 rows or more?
    When you know, that some axes titles have 2 lines you can simply add a "\n" to the other axes titles.

    If the second line somehow depends on the current layout ( automatic line breaks, when the height gets too small ) you might have to add some auto detection based on QwtScaleWidget::titleHeightForWidth/QwtScaleWidget::dimForLength in the resize event of the box containing the plots.

    Uwe

Similar Threads

  1. Replies: 1
    Last Post: 21st April 2014, 20:01
  2. Axis Title to axis label alignment
    By ROCKSTAR in forum Qwt
    Replies: 0
    Last Post: 5th February 2014, 12:47
  3. Replies: 7
    Last Post: 10th July 2013, 13:32
  4. Replies: 9
    Last Post: 3rd May 2011, 21:21
  5. Replies: 0
    Last Post: 9th August 2010, 10:46

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.