Results 1 to 6 of 6

Thread: Show a scale for the same axis on both sides of the plotcanvas

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jun 2009
    Posts
    9
    Thanks
    3
    Qt products
    Qt4
    Platforms
    Unix/X11 Windows

    Default Show a scale for the same axis on both sides of the plotcanvas

    Hi There,

    I would like to show a scale for the y Axis on the left as well as the right side of the plot canvas. They should display exactly the same range etc.

    I guess I could add a QwtScaleWidget and work out something with this, but then I guess I have to do the layout stuff myself?

    Thanks a lot
    Simon

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

    Default Re: Show a scale for the same axis on both sides of the plotcanvas

    I would like to show a scale for the y Axis on the left as well as the right side of the plot canvas.
    plot->enableAxis( QwtPlot::yRight );

    They should display exactly the same range etc.
    This depends on how you set your QwtPlot::Left axis.

    If you don't assign it manually you can connect to the QwtScaleWidget::scaleDivChanged() signal and synchronize the right axis from the left one ( use QwtPlot::setAxisScaleDiv() ).

    Uwe

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

    SimonSchmeisser (20th February 2012)

Similar Threads

  1. qwt axis scale
    By Markus_AC in forum Qwt
    Replies: 0
    Last Post: 15th December 2011, 09:45
  2. Date Scale for X-Axis
    By mishani99 in forum Qwt
    Replies: 3
    Last Post: 6th September 2011, 11:40
  3. Axis Auto Scale
    By gkarthick5 in forum Qwt
    Replies: 3
    Last Post: 13th July 2011, 13:57
  4. Replies: 4
    Last Post: 16th January 2011, 10:32
  5. qwp plot axis scale
    By Cal in forum Qwt
    Replies: 1
    Last Post: 11th May 2009, 17:10

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.