annotationGetDefaults#

Purpose#

Fills in an instance of a plotAnnotation structure with default values.

Format#

myAnnotation = annotationGetDefaults()#
Returns:

myAnnotation (struct) – An instance of a plotAnnotation structure with all members set to defaults.

Examples#

// Declare 'myAnnotation' to be an instance of a plotAnnotation structure
struct plotAnnotation myAnnotation;

// Fill in 'myAnnotation' with default values
myAnnotation = annotationGetDefaults();

Remarks#

plotAnnotation structures are used with the annotationSet functions to programmatically control the attributes of the annotations that you add to graphs.

To see a full example of adding an annotation to a graph, see the command reference page for plotAddLine(), plotAddShape() or plotAddTextbox()