offsetAxes(ax)
In Python/Seaborn, there is the option to offset the x and y axis at the origin. This 'despine' pulls the x-axis down a bit, and the y-axis left, so that data that are close to either one become more visible. This function mimics the behaviour in a matlab plot, by changing the axis limits and covering the origin of the axes with a white line.
Citation pour cette source
Anne Urai (2026). offsetAxes(ax) (https://fr.mathworks.com/matlabcentral/fileexchange/52351-offsetaxes-ax), MATLAB Central File Exchange. Extrait(e) le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
Tags
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 | |
|---|---|---|---|
| 2.0.0.0 | Thanks to Pierre Morel and http://tinyurl.com/obtuh39, I updated the function to resize 'XRuler.Axle.VertexData' and 'YRuler.Axle.VertexData', and keeping this constant when resizing using a listener. |
||
| 1.2.0.0 | added a user-defined option to mask data outside range
|
||
| 1.1.0.0 | Added screenshot, slack values adjusted for 4x4 subplot |
||
| 1.0.0.0 |
