Results 1 to 3 of 3

Thread: QwtPlot offset between Canvas and Scale

  1. #1
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Windows

    Question QwtPlot offset between Canvas and Scale

    I read few posts, but nobody seems to have a problem with that. I am plotting a 2D-graph, so I use the Qwt Libs.

    Problem: There is a space between the drawRect or canvas or whatever you call it and the scales. I want the scales to be adjusted to the canvas so there is no more space between them.



    Is it even possible? Really cannot find the solution for that.

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

    Default Re: QwtPlot offset between Canvas and Scale

    Qt Code:
    1. plot->axisWidget( QwtPlot::yLeft )->setMargin( 0 );
    To copy to clipboard, switch view to plain text mode 
    Note, that here is a subforum dedicated to Qwt. If you don't want to be missed post there.

    Uwe

  3. The following 2 users say thank you to Uwe for this useful post:

    FelixB (27th September 2011), revellix (31st July 2011)

  4. #3
    Join Date
    Jul 2011
    Posts
    26
    Thanks
    11
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QwtPlot offset between Canvas and Scale

    Uwe you rock ...

    I am new to Qt... sorry, next time I post in the SubForum.

    thx

Similar Threads

  1. QwtPlot Canvas Size Hint?
    By umituzun84 in forum Qwt
    Replies: 8
    Last Post: 22nd September 2011, 16:21
  2. Replies: 8
    Last Post: 17th April 2011, 17:16
  3. Replies: 2
    Last Post: 30th December 2010, 17:32
  4. Replies: 0
    Last Post: 4th May 2010, 09:45
  5. Replies: 1
    Last Post: 29th November 2008, 12:37

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.