Take & Restore hold
This is a pair of functions to manipulate the hold state of an axes object.
The first one holds the axes for adding multiple new graphics objects. It can optionally clear them first, if the previous hold state was off.
This is useful when a function either:
1) adds graphics without erasing anything, ignoring the existing hold state, or
2) behaves like plot, but needs to temporarily add multiple objects to the plot.
The second function restores the axes object to its previous hold state.
Citation pour cette source
Ioannis Filippidis (2024). Take & Restore hold (https://www.mathworks.com/matlabcentral/fileexchange/36641-take-restore-hold), MATLAB Central File Exchange. Récupéré le .
Compatibilité avec les versions de MATLAB
Plateformes compatibles
Windows macOS LinuxCatégories
- MATLAB > Graphics > Graphics Objects > Graphics Object Properties >
- MATLAB > Graphics > Graphics Objects > Specifying Target for Graphics Output >
Tags
Remerciements
Inspiré par : savehold: Run the 'hold on' command and save its state for possible restoration
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.0.0.0 |