by Soc
Add multiple y-axes to a figure with full zoom, pan, and data cursor usage.
Updated 16 Jul 2020

A new take on plotting data across multiple y-axes in MATLAB. Creates a pair of visible/invisible axes: the invisible one is used to overlay data with the existing main axes, while the visible one is placed adjacent to the main axes to indicate the scale. Maintains zoom, pan, and data cursor functionality.

For usage, see addy_demo.m.

Inspired by yyaxis, plotyyy (, and addaxis (

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

Inspired by: addaxis, plotyyy

Community Treasure Hunt

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

Start Hunting!