Axes Orienter

Scroll and zoom in/out of axes using arrows keys. Display part of total data currently in view.
136 Downloads
Updated 7 Apr 2016

View License

Zoom and pan(scroll) plotted data (referencePlot) using keypresses (arrow keys, shift, and command).
Keypresses adjust the X and Y limits of the axes (Ax2Adjust) where the data are plotted.
referencePlot can be any graphics object with properties X-Data and Y-Data.

A separate axes (TrackerAx) shows the user which portion of the referencePlot is currently visible in Ax2Adjust. TrackerAx contains copy of referencePlot (miniPlot) such that all its X and Y data are visible. A semi-opaque yellow square (TrackerPatch) highlights the portion of referencePlot data currently visible in Ax2Adjust.

Orienter automatically responds to events.
If referencePlot X or Y data or Ax2Adjust limits change, listeners automatically adjust miniPlot and TrackerAx accordingly. This allows you link axes with Ax2Adjust and to edit referencePlot data without having to alter Orienter.

User can adjust the speed/precision of zooming and panning.
More specifically, user can adjust how much the axes limits changes with each key press by clicking the patch object.

Axes Orienter should function in standalone applications/GUIs.

TrackerPatch appearance can be altered by accessing Patch properties (e.g. ‘FaceColor’ for color, ‘FaceAlpha’ for transparency).

Limitations:
Only changes in referencePlot XData and YData properties will cause miniPlot to update.
If properties of referencePlot BESIDES XData and YData change (e.g. Color), these changes will not transfer to miniPlot until you call referencePlot. You can always ensure miniplot matches referencePlot by using
update_miniPlot method.
When referencePlot X/Y Data do change, ALL properties of referencePlot are transferred to miniPlot.

Cite As

E Zakreski (2024). Axes Orienter (https://www.mathworks.com/matlabcentral/fileexchange/56432-axes-orienter), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2015a
Compatible with any release
Platform Compatibility
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0