Code covered by the BSD License  

Highlights from
Insert annotation in figure's metadata

image thumbnail

Insert annotation in figure's metadata


Germán (view profile)


Make annotations that are not displayed on the figure area.

insertAnnotation(h, text)
function insertAnnotation(h, text)
% insertAnnotation(h, text)
% h    - Figure handle. Default: current figure
% text - Annotation to include in figure's metadata.
% Inserts annotation into figure's metadata. 
% Usage:
% insertAnnotation(figureHandle, 'some text')
% insertAnnotation('some text')   % Inserts into current figure
% gP 8/20/2013

if nargin < 2
    text = h;
    h = gcf;

set(h, 'UserData', text)

Contact us