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 (2021). Zoom Plot (https://github.com/Zaunmich/matlab_zoom_plot), GitHub. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!