Results 1 to 3 of 3

Thread: How to remove margins from plot?

  1. #1
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default How to remove margins from plot?

    Hi,

    I want to display a plot without margins at the left and right sides.
    I tried using

    Qt Code:
    1. plot->axisScaleEngine(QwtPlot::xBottom)->setMargins(0., 0.);
    To copy to clipboard, switch view to plain text mode 
    but it doesen't change anything.

    On both sides there is still free space which is not used by the plot.
    How can I solve this?

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

    Default Re: How to remove margins from plot?

    Check the examples.

    Uwe

  3. #3
    Join Date
    Jun 2011
    Posts
    38
    Thanks
    8
    Thanked 1 Time in 1 Post

    Default Re: How to remove margins from plot?

    Could you please give me a hint, in which example I have to look?

    And if you're talking about settings the scale manually - this is what I already did and it works fine, but I would prefer not to have to do it.

    Thanks again for your great help in the last days :-)

Similar Threads

  1. Remove the Margins
    By Serenity in forum Qt Programming
    Replies: 1
    Last Post: 12th August 2010, 10:33
  2. Replies: 7
    Last Post: 22nd September 2008, 22:05
  3. QToolButton margins
    By bjoernbg in forum Qt Programming
    Replies: 3
    Last Post: 24th January 2008, 09:28
  4. QScrollArea margins
    By munna in forum Qt Programming
    Replies: 12
    Last Post: 18th September 2006, 18:56
  5. QComboBox Margins
    By ToddAtWSU in forum Qt Programming
    Replies: 1
    Last Post: 19th August 2006, 11:58

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.