image thumbnail

Axis XX

version 2.6.0.0 (26.1 KB) by Luke Plausin
Add multiple X or Y axes to plots, rescale data, use any function, add data tips, zoom, flexible.

1.9K Downloads

Updated 10 Dec 2015

From GitHub

View license on GitHub

This package will allow you to plot data on multiple X or Y axis. Similar to MATLAB's own plotyy function, but less limiting.
Features:
Create any combination of X or Y axes, plot multiple lines on each X or Y axis
Native argument styles and overloaded plot functions supported e.g:
axisyy(xdata, ydata, 'r-', 'LineWidth', 2, 'MarkerSize', 14);
axisyy(TimeSeriesObject, 'b-', 'LineWidth', 3);
Use any plotting function you specify (plot, line, patch, etc)
Set the limits of every axis independently
Ability to update xdata/ydata directly without thinking about the transformation
Compatible with MATLAB's zoom, pan and data cursor tools
Figure is resizeable and rescales objects around colorbars if they are present
The code has been completely rewritten using an object oriented approach.
Originally inspired by AddAxis 5 by Harry Lee

Check the example.m file for some quick tips.

If you find any bugs or have suggestions please write in the comments box or message me. If the submission was helpful, then please rate it.

Cite As

Luke Plausin (2021). Axis XX (https://github.com/lukeplausin/axis_xx_matlab), GitHub. Retrieved .

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

Inspired by: addaxis, GUI Layout Toolbox, GUI Layout Toolbox

Community Treasure Hunt

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

Start Hunting!
To view or report issues in this GitHub add-on, visit the GitHub Repository.
To view or report issues in this GitHub add-on, visit the GitHub Repository.