LabelVisibility

LabelVisibility

is an option for Callout and Labeled in plotting functions that determines which labels are shown.

Details

  • LabelVisibility takes the following settings:
  • Allalways show the label
    Infinityhighest priority for automatic labeling
    nrelative priority for automatic labeling
    -Infinitylowest priority for automatic labeling
    Automaticpriority determined by ordering
    Nonenever show the label
  • With LabelVisibility set to Infinity, -Infinity, Automatic or n, the label will be shown if there is space to put it that does not collide with higher-priority labels or other graphical content.
  • LabelVisibility->All shows the label even if it will collide with other content.

Examples

Basic Examples  (2)

Label all the even-numbered points in a plot, even if some of them collide:

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

Label even-numbered points while avoiding collisions:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 2019
(12.0)