Updated Mon, 10 May 2021 12:19:06 +0000
Download the file and have 'zoom_plot.m' on the Matlab path.
Use [zoom_utils] = zoom_plot(ax) to create a set of axes inside the parent axes ax.
Optional settings can be given passed through via zoom_plot(ax,options). See the example code.
The new axes object can be moved around via drag-and-drop. Make sure to not have any plot tools, like zoom/pan/... active.
You can even zoom/pan in the new axes object. The rectangle will automatically be updated! Click once on the plot, to re-align the arrows.
You can use the zoom_plot function on the new axes to create multiple levels of zoom
Michael Zauner (2023). Zoom Plot (https://github.com/Zaunmich/matlab_zoom_plot), GitHub. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Versions that use the GitHub default branch cannot be downloaded