Code covered by the BSD License  

Highlights from
Take & Restore hold

Be the first to rate this file! 22 Downloads (last 30 days) File Size: 2.24 KB File ID: #36641

Take & Restore hold

by

 

Hold axes temporarily, optionally respecting the previous hold state.

| Watch this File

File Information
Description

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.

Acknowledgements

Savehold: Run The 'Hold On' Command And Save Its State For Possible Restoration inspired this file.

This file inspired Export Figure To 3 D Interactive Pdf.

Required Products MATLAB
MATLAB release MATLAB 7.14 (R2012a)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.

Contact us