MouseAnnotation

MouseAnnotation[]
gives any mouse annotation associated with the expression at the current mouse position.

DetailsDetails

  • MouseAnnotation[] returns Null if there is no mouse annotation associated with the expression at the current mouse position.
  • MouseAnnotation[def] returns def if there is no current annotation.
  • MouseAnnotation[] yields the mouse annotation associated with the expression that would be selected if the mouse were clicked.
  • The annotation is the expression note in Annotation[expr,note,"Mouse"].
  • Dynamic[MouseAnnotation[]] gives the continually updated current mouse annotation.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

If the mouse is over the graphics, MouseAnnotation will return the associated annotation:

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

When the mouse is over the graphics, the annotation is displayed:

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

Use in plots:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
Introduced in 2007
(6.0)