File Exchange

image thumbnail

Take & Restore hold

version 1.0.0.0 (2.24 KB) by Ioannis Filippidis
Hold axes temporarily, optionally respecting the previous hold state.

11 Downloads

Updated 10 May 2012

View License

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.

Cite As

Ioannis Filippidis (2020). Take & Restore hold (https://www.mathworks.com/matlabcentral/fileexchange/36641-take-restore-hold), MATLAB Central File Exchange. Retrieved .

Comments and Ratings (0)

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