Results 1 to 2 of 2

Thread: QwtPlotMagnifier

  1. #1
    Join Date
    Jun 2012
    Posts
    33
    Thanks
    6

    Default QwtPlotMagnifier

    Good day!

    Tell me how to implement the trail. features:
    1. We must do whatever QwtMagnifier did increase only Y. I think that i can do this in this way:

    Qt Code:
    1. ((QwtPlotMagnifier *) new QwtPlotMagnifier (canvas ())) -> setAxisEnabled (QwtPlot :: yLeft, false);
    To copy to clipboard, switch view to plain text mode 

    But then you have something to tell him that when I start to diminish, that it had not reduced less than some initial state, ie I suppose the graph starts at (0,0), then I need that after the increase, when I decide to return to its original state and start to decrease, that would not make it ( X ) less than zero ... How can this be implemented?

    2. If I have, for example, there are two QwtPlots and I need to do so, that would be if I increase on the same plot, 2nd plot increased, too, as well as the first. How can this be implemented?

    Thank you for your attention.
    Sincerely,
    carhun

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

    Default Re: QwtPlotMagnifier

    Quote Originally Posted by carhun View Post
    1. We must do whatever QwtMagnifier did increase only Y. I think that i can do this in this way:

    Qt Code:
    1. ((QwtPlotMagnifier *) new QwtPlotMagnifier (canvas ())) -> setAxisEnabled (QwtPlot :: yLeft, false);
    To copy to clipboard, switch view to plain text mode 
    This disables the yLeft axes !

    2. If I have, for example, there are two QwtPlots and I need to do so, that would be if I increase on the same plot, 2nd plot increased, too, as well as the first. How can this be implemented?
    Connect a slot to the scaleDivChanged signals of the scale widgets of the plot. In your slot assign the scales from one plot ( QwtPlot::axisScaleDiv() ) to the other ( QwtPlot::setAxisScaleDiv() ).

    Uwe

Similar Threads

  1. Replies: 3
    Last Post: 1st January 2011, 17:00
  2. QwtPlotMagnifier widgetKeyPressEvent
    By robertson1 in forum Qwt
    Replies: 5
    Last Post: 5th June 2010, 00:59
  3. QwtPlotMagnifier initial zoom
    By jomarin in forum Qwt
    Replies: 6
    Last Post: 6th May 2010, 09:29
  4. Map QwtPlotMagnifier to a button
    By volatile_ah in forum Qwt
    Replies: 1
    Last Post: 28th January 2010, 10:51
  5. Problem with the QwtPlotMagnifier
    By seguprasad in forum Qwt
    Replies: 8
    Last Post: 6th December 2007, 12:11

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.