|
SOLUTIONS
|
Mathematica
>
Visualization and Graphics
>
Charting and Information Visualization
>
Chart Labeling, Legending, & Annotation
>
LabelingFunction
BUILT-IN MATHEMATICA SYMBOL
LabelingFunction
LabelingFunction
is an option for charting functions that specifies a function to apply to determine labeling of chart elements.
DetailsDetails
- LabelingFunction->f specifies that each chart element should have a label given by
, where value is the data value associated with the element, index is its position in the nested list of datasets, and lbls is the list of relevant labels specified by ChartLabels. - LabelingFunction->None specifies that no labeling should be done.
- LabelingFunction->pos is effectively equivalent to LabelingFunction->(Placed[#, pos]&), where pos is a position such as Top, Bottom, Left, Right.
- A setting of Automatic is effectively equivalent to Placed[#, {Tooltip, StatusArea}]&, and displays the data value for each data element in a tooltip and in the status area.
- If the labeling function f returns a labeling expression expr not of the form Placed[...], the labeling expression is taken to be Placed[f[...], Automatic].
- Labels in a particular chart can be specified by ChartLabels, LabelingFunction, or explicit Labeled wrappers. All labels specified in all ways will be used in any given chart.
New in 7
Mathematica 9 is now available!
New to Mathematica?
Find your learning path »
Have a question?
Ask support »





