On Fri, May 17 2019, JJ <[email protected]> wrote: > How can I override the default mouse left click behavior that pans the plot > and implement a zoom to the area selected by the mouse. More specifically, > I would like to implement the following: > > > - Left click to define zoom start > - Drag to define a rectangular zoom area. A filled rectange should be > rendered on the screen while the zoom area is being defined. > - Click release to define zoom end. The plot now zooms to the defined > area.
What you are describing is currently available as "1 button" mouse mode, and is available via the left-click context menu under "Mouse Mode". jamie. -- You received this message because you are subscribed to the Google Groups "pyqtgraph" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pyqtgraph/87zhnlb06b.fsf%40caltech.edu. For more options, visit https://groups.google.com/d/optout.
