Results 1 to 3 of 3

Thread: How to plot scale on the canvas

  1. #1
    Join Date
    Jun 2008
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Question How to plot scale on the canvas

    I want to plot scale on the canvas. I try to use the scale map of the left axis.
    When I turn on the YLeft Axis or XBottom Axis, It works good.
    But When I turn off the YLeft Axis It works in a wrong way. It shows just a part of the plot .why??? Hope for help!!
    I tried many times , I find out the problem is the laylout stuff, but I don't know how to solve it .
    When I turn on 1 axis, the layout works fine, if I turn off the axis, It works wrong.
    Just pay attention on the left green part!
    I put he plot in a QVBoxLayout to layout it.
    Untitled1.jpg
    Untitled2.jpg
    Untitled3.jpg
    Last edited by baoxuefei771; 29th May 2013 at 16:31.

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

    Default Re: How to plot scale on the canvas

    Quote Originally Posted by baoxuefei771 View Post
    I want to plot scale on the canvas.
    There is a plot item for this: http://qwt.sourceforge.net/class_qwt...cale_item.html
    Quote Originally Posted by baoxuefei771 View Post
    I try to use the scale map of the left axis.
    With "scaleItem->setYAxis( QwtPlot::yLeft )" the scale gets synchronized with the coordinate system of the left scale, what is the coordinate system of the plot - even if this axis is in a hidden state.

    Uwe

    PS: unfortunately none of the examples is using this item

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

    baoxuefei771 (29th May 2013)

  4. #3
    Join Date
    Jun 2008
    Posts
    11
    Thanks
    3
    Thanked 1 Time in 1 Post
    Qt products
    Qt4
    Platforms
    Unix/X11

    Default Re: How to plot scale on the canvas

    Thank you for your reply!
    Thank you so much!!

Similar Threads

  1. Replies: 1
    Last Post: 17th May 2013, 07:10
  2. How to set margin on one side of canvas plot (QwtPlot)
    By balvinder in forum Qt Programming
    Replies: 1
    Last Post: 13th February 2012, 16:15
  3. QwtPlot offset between Canvas and Scale
    By revellix in forum Qt Programming
    Replies: 2
    Last Post: 31st July 2011, 13:31
  4. QwtPlotZoomer zooming off the plot canvas
    By BettaUseYoNikes in forum Qwt
    Replies: 1
    Last Post: 26th June 2011, 11:38
  5. Replies: 0
    Last Post: 4th May 2010, 09:45

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.