addaxis
Note de l’éditeur : 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.
Citation pour cette source
Harry Lee (2024). addaxis (https://www.mathworks.com/matlabcentral/fileexchange/9016-addaxis), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > Formatting and Annotation > Axes Appearance >
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Axis Labels >
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots > Two y-axis >
Tags
Remerciements
A inspiré : addy_axis, 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!Découvrir Live Editor
Créez des scripts avec du code, des résultats et du texte formaté dans un même document exécutable.
Version | Publié le | Notes de version | |
---|---|---|---|
1.1.0.0 | Supports zooming of added axes in versions of Matlab that support the zoom mode objects with ActionPostCallback and ActionPreCallback. Tested for R2010a. |
||
1.0.0.0 | Fixed small bug in addaxisplot so it works to add plots to the original axis, also addaxislabel input made more flexible. |