Results 1 to 4 of 4

Thread: QwtMagnifier zooming

  1. #1
    Join Date
    Dec 2010
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Question QwtMagnifier zooming

    I am using QwtMagnifier for zooming in and out my Histogram.
    Actually my plot caonsists of multiple histograms on same canvas.
    I want to fix the width of QwtPlotHistogram Bars and I want the magnification to be done only horizontally.
    That is I juat want to stretch my Plot horizontally.

    How can it be done with QwtMagnifier ?
    Or Is there any other way to do the same ?

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

    Default Re: QwtMagnifier zooming

    Quote Originally Posted by mohini View Post
    I want the magnification to be done only horizontally.
    Qt Code:
    1. magnifier->setAxisEnabled( QwtPlot::yLeft, false);
    2. magnifier->setAxisEnabled( QwtPlot::yRight, false);
    To copy to clipboard, switch view to plain text mode 
    Uwe

  3. #3
    Join Date
    Dec 2010
    Posts
    33
    Thanks
    7
    Qt products
    Qt4
    Platforms
    Windows

    Default Re: QwtMagnifier zooming

    Thank you very much, that works, but in the above case, the axis is in the centre. What if i want the axis to the left side, and magnify only along the right?


    Added after 1 1:


    Also, if i use scrollzoomer from realtime example, can something be done to achieve the same result?
    Last edited by penny; 29th December 2010 at 06:20.

  4. #4
    Join Date
    Dec 2010
    Posts
    12
    Thanks
    1
    Qt products
    Qt3 Qt4 PyQt3 PyQt4
    Platforms
    Unix/X11 Windows

    Default Re: QwtMagnifier zooming

    thanx Uwe ..!
    Penny to magnify the plot only along the right , try overloading Rescale method of QwtPlotMagnifier in your class ...
    It works ..!

Similar Threads

  1. Zooming with rubberband
    By zgulser in forum Qt Programming
    Replies: 5
    Last Post: 24th February 2010, 12:00
  2. zooming only x
    By mastupristi in forum Qwt
    Replies: 1
    Last Post: 7th May 2009, 08:23
  3. Zooming
    By td in forum Newbie
    Replies: 1
    Last Post: 26th November 2008, 13:43
  4. Zooming..
    By chethana in forum Qt Programming
    Replies: 7
    Last Post: 10th October 2007, 08:17
  5. Zooming in but not out
    By nitriles in forum Qt Programming
    Replies: 1
    Last Post: 5th October 2007, 08:54

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
  •  
Qt is a trademark of The Qt Company.