Results 1 to 2 of 2

Thread: Zooming the plot without the marker

  1. #1
    Join Date
    Feb 2007
    Posts
    63
    Qt products
    Qt3
    Platforms
    Unix/X11

    Default Zooming the plot without the marker

    Hi all,
    I am using qwt6.0.0 in linux platform to develop a application.
    I have drawn a plot with a Marker( Vertical line), and i am using QwtPlotMagnify to zoom in/out using the mouse.
    Now when i do the zooming, the plots gets zoomed along with the x and y axis and the Marker (Vertical line) moves out of the canvas.
    However i have a requirement where on zooming, the plot nad scale gets zoomed but the marker i.e the vertical line should remain at it position.
    Hope i am clear with the problem.
    kindly suggest

    Regards
    Raghav

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

    Default Re: Zooming the plot without the marker

    Overload QwtPlotMagnify::rescale - simply start with the code from the base class and modify it to your requirements.

    Uwe

Similar Threads

  1. Replies: 2
    Last Post: 12th September 2012, 08:43
  2. Replies: 2
    Last Post: 7th October 2011, 16:43
  3. Replies: 13
    Last Post: 20th September 2011, 10:50
  4. QwtPlotZoomer zooming off the plot canvas
    By BettaUseYoNikes in forum Qwt
    Replies: 1
    Last Post: 26th June 2011, 12:38
  5. Moving plot marker with the mouse
    By viridis in forum Qwt
    Replies: 2
    Last Post: 23rd September 2008, 21:39

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.