Wolfram Function Repository
Instant-use add-on functions for the Wolfram Language
Function Repository Resource:
A version of Plot which allows you to zoom into the plot using the mouse
generates a plot of f as a function of x from xmin to xmax that can be zoomed into using the mouse.
takes the setting to be the dynamically updated current value of range, with the value of range being reset if the plot is clicked.
Click and drag to select regions of a plot that you wish to see enlarged. Single-click to reset the zoom area:
The selected range can dynamically update a variable and the plot updates if the variable changes value:
All options for Plot are supported:
You cannot use the mouse to resize the result of DragZoomPlot, so it is is necessary to use ImageSize to control the size:
If you use DragZoomPlot within Dynamic or Manipulate, you should specify a range variable or the range will reset with each refresh:
Wolfram Language 11.3 (March 2018) or above
This work is licensed under a Creative Commons Attribution 4.0 International License