Annotation
Annotation[expr,data]
represents an expression expr, with annotation data.
Annotation[expr,data,"type"]
specifies the type of annotation being given.
Annotation[items,keyvalue]
associates keyvalue pairs with items in objects such as Graph, MeshRegion etc.
Details
- Annotation[expr,…] displays in a notebook as expr.
- Annotation acts as an inert wrapper for storing annotations in expressions.
- Annotation can be used with graphics or any other expression.
- With particular "type" specifications, annotations are picked up by various built-in functions:
-
"Hyperlink" hyperlink for exported image maps etc. "Mouse" annotation for MouseAnnotation "Region" regions for Rasterize, Export, etc. "Tooltip" tooltip specification for Export etc. - With keyvalue specifications, annotations are associated to items in various objects:
-
Audio time points and time intervals BoundaryMeshRegion mesh cells Graph vertices and edges MeshRegion mesh cells
Examples
open allclose allBasic Examples (3)
Scope (8)
Basic Uses (5)
Store annotations in an expression:
Retrieve expressions with specific annotations:
Add a hyperlink to any part of the expression when converting to an HTML file:
Use Rasterize to find the position of the annotated object within the image:
Applications (6)
Graphs (2)
Build a graph with VertexSize and VertexStyle annotations on vertices:
Use Annotation to specify the weight for individual edges:
Export (2)
Text
Wolfram Research (2007), Annotation, Wolfram Language function, https://reference.wolfram.com/language/ref/Annotation.html (updated 2020).
CMS
Wolfram Language. 2007. "Annotation." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2020. https://reference.wolfram.com/language/ref/Annotation.html.
APA
Wolfram Language. (2007). Annotation. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Annotation.html