({{, (RefLink[PlotLabel, paclet:ref/PlotLabel])
is an option for graphics functions that specifies an overall label for a plot. }})

OpenersNotesSection(Spacer1)Details

(RefLink[PlotLabel, paclet:ref/PlotLabel])->(RefLink[None, paclet:ref/None]) specifies that no label should be given.

(RefLink[PlotLabel, paclet:ref/PlotLabel])->label specifies a label to give.

Any expression can be used as a label. It will be given by default in (RefLink[TraditionalForm, paclet:ref/TraditionalForm]). Arbitrary strings of text can be given as "text". »

(RefLink[PlotLabel, paclet:ref/PlotLabel])->(RefLink[StandardForm, paclet:ref/StandardForm])[expr] will give a label in standard Wolfram Language form. »

OpenersPrimaryExamplesSection(Spacer1)Examples  (9)

OpenersExampleSection0(Spacer1)Basic Examples  (3)

Use any Wolfram Language notation for labels:

Plot[BesselJ[1,x],{x,0,10},PlotLabel->BesselJ[1,x]]

ContourPlot3D[x^2+y^2==z^2,{x,-3,3},{y,-3,3},{z,-3,3},PlotLabel->x^2+y^2==z^2]

Use (RefLink[Style, paclet:ref/Style]) and other typesetting functions to modify how the label appears:

RegionPlot[y^3<x^2+x,{x,-2,2},{y,-2,2},PlotLabel->Style[Framed[y^3<x^2+x],16,Blue,Background->Lighter[Yellow]]]

Overall style of all the label-like elements can be specified by (RefLink[LabelStyle, paclet:ref/LabelStyle]):

Plot[2Sin[x],{x,0,10},PlotLabel->2Sin[x],LabelStyle->Directive[Bold,Orange]]

OpenersExampleSection1(Spacer1)Scope  (2)

Labels use (RefLink[TraditionalForm, paclet:ref/TraditionalForm]) by default:

Plot[Sin[x],{x,0,10},PlotLabel->Sin[x]]

Use (RefLink[StandardForm, paclet:ref/StandardForm]) instead:

Plot[Sin[x],{x,0,10},PlotLabel->StandardForm[Sin[x]]]

An individually styled label can be used with (RefLink[LabelStyle, paclet:ref/LabelStyle]), and has higher priority:

Plot[Sin[x],{x,0,10},PlotLabel->Style[Sin[x],Blue,20],LabelStyle->Directive[Orange,Italic]]

OpenersExampleSection2(Spacer1)Applications  (1)

Automatically label different cases:

Table[SphericalPlot3D[1+Sin[5ϕ]/10,{θ,0,Pi},{ϕ,0,2Pi},RegionFunction->Function[{x,y,z,θ,ϕ,r},Evaluate[f]],PlotLabel->f,Mesh->None,BoundaryStyle->Black,PlotRange->1.1,Axes->None],{f,{0<x<1,0<y<1,0<z<1,0<θ<1,0<ϕ<Pi/2,1/2<r<1}}]

Table[Plot[Evaluate[f[x]],{x,-5,5},PlotLabel->f[x]],{f,{Sin,Cos,Csc,Sec,Tan,Cot}}]

OpenersExampleSection3(Spacer1)Properties & Relations  (1)

The overall output format can be specified using (RefLink[FormatType, paclet:ref/FormatType]):

Plot[Sin[x], {x, 0, 10},PlotLabel->Sin[x],FormatType->StandardForm]

OpenersExampleSection4(Spacer1)Possible Issues  (1)

When different format types are combined, the result is likely to be unpredictable:

Plot[Sin[x],{x,0,10},Frame->True,PlotLabel->TraditionalForm@Sin[x],FormatType->StandardForm]

This is equivalent to:

StandardForm[TraditionalForm[Sin[x]]]

OpenersExampleSection5(Spacer1)Neat Examples  (1)

Interactively choose a function to plot:

Dynamic[Plot[f[x],{x,0,10},PlotLabel->Row[{Style["f",Italic],"=",PopupMenu[Dynamic[f],{Sin,Cos,Tan,Sinc}]}]]]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[AxesLabel, paclet:ref/AxesLabel])  ▪  (RefLink[Labeled, paclet:ref/Labeled])  ▪  (RefLink[PlotLabels, paclet:ref/PlotLabels])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Options for Graphics, paclet:tutorial/Options])}, {▪(RefLinkPlain[Labeling Three-Dimensional Graphics, paclet:tutorial/LabelingThreeDimensionalGraphics])}, {▪(RefLinkPlain[Graphics and Sound, paclet:tutorial/GraphicsAndSoundOverview])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Labels, paclet:guide/Labels])}, {▪(RefLinkPlain[Graphics Annotation & Appearance, paclet:guide/GraphicsAnnotationAndAppearance])}, {▪(RefLinkPlain[Chart Labeling, Legending & Annotation, paclet:guide/ChartLabelingLegendingAndAnnotation])}, {▪(RefLinkPlain[Annotating & Combining Graphics, paclet:guide/AnnotatingAndCombiningGraphics])}, {▪(RefLinkPlain[Graphics Options & Styling, paclet:guide/GraphicsOptionsAndStyling])}, {▪(RefLinkPlain[Chart Styling & Layout, paclet:guide/ChartLayoutAndStyling])}})}})