image thumbnail

addaxis

version 1.1.0.0 (21.4 KB) by Harry Lee
Add multiple y-axes to plots. zoomable with zoom modification.

28K Downloads

Updated 07 Jul 2016

View License

Editor's Note: This file was selected as MATLAB Central Pick of the Week

Adds multiple axes to plots using addaxis.m. Automatically adjusts axes to accomodate as many axes as you want.
Add more plots to any added axes with addaxisplot.m
Add y-labels to any of the axes with addaxislabels.m

All plots zoom together. A small modification to the zoom function allows all of the added axes to update with zoom.

zoom modifications for R11.1 and R14SP2 are included.

Usage is almost exactly like the plot command, see the help for addaxis.m for examples.

Cite As

Harry Lee (2021). addaxis (https://www.mathworks.com/matlabcentral/fileexchange/9016-addaxis), MATLAB Central File Exchange. Retrieved .

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

Inspired: myaxisc, addy_axis, plotNAx, addaxes.m v1.1 (Sep 2009), Axis XX

Community Treasure Hunt

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

Start Hunting!