Annotation

Annotation[expr, data]
represents an expression expr, with annotation data.

Annotation[expr, data, "type"]
specifies the type of annotation being given.

DetailsDetails

  • Annotation[expr, data] displays as expr.
  • Annotation can be used with graphics or any other expression.
  • Annotation acts as an inert wrapper for storing annotations in expressions.
  • With particular 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.

ExamplesExamplesopen allclose all

Basic Examples (2)Basic Examples (2)

Dynamically get the annotation when the mouse enters the disk:

In[1]:=
Click for copyable input
Out[1]=

Annotate curves in a plot:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »