({{, (RefLink[ContourStyle, paclet:ref/ContourStyle])
is an option for contour plots that specifies the style in which contour lines or surfaces should be drawn. }})

OpenersNotesSection(Spacer1)Details

(RefLink[ContourStyle, paclet:ref/ContourStyle])->g specifies that a graphics directive g should be used to draw all contour lines or surfaces.

(RefLink[ContourStyle, paclet:ref/ContourStyle])->{(Subscript[g, 1]),(Subscript[g, 2]),…} specifies that successive directives (Subscript[g, i]) should be used to draw successive contours.

If equations are given as input to (RefLink[ContourPlot, paclet:ref/ContourPlot]) or (RefLink[ContourPlot3D, paclet:ref/ContourPlot3D]), the successive directives in (RefLink[ContourStyle, paclet:ref/ContourStyle])->{(Subscript[g, 1]),(Subscript[g, 2]),…} are used cyclically to draw contours for the successive equations.

The directives that can be given include:

For individual (Subscript[g, i]), a list of directives is equivalent to (RefLink[Directive, paclet:ref/Directive])[…]. For a single g, a list of directives must be given as {list}.

(RefLink[ContourStyle, paclet:ref/ContourStyle])->(RefLink[None, paclet:ref/None]) specifies that no explicit contour lines or surfaces should be drawn. Contour shading and meshes are not affected.

OpenersPrimaryExamplesSection(Spacer1)Examples  (5)

OpenersExampleSection0(Spacer1)Basic Examples  (5)

Contour lines are partially transparent by default:

ContourPlot[Sin[x y],{x,0,3},{y,0,3}]

Use dashed contour lines:

ContourPlot[Sin[x y],{x,0,3},{y,0,3},ContourStyle->Dashed]

Show only the regions between contours, but not the actual contours:

ContourPlot[Sin[x y],{x,0,3},{y,0,3},ContourStyle->None]

Use partially transparent contour surfaces in three dimensions:

ContourPlot3D[x^2+y^2-z^2,{x,-1,1},{y,-1,1},{z,-1,1},Mesh->None,ContourStyle->Opacity[0.4]]

Give an explicit list of styles for contours:

ContourPlot3D[x^2+y^2-z^2,{x,-1,1},{y,-1,1},{z,-1,1},Mesh->None,ContourStyle->{Red,Orange,Yellow},Lighting->"Neutral"]

({{DocumentationFooterIconsRelatedFunction.png, ({{See Also}, {(RefLink[MeshStyle, paclet:ref/MeshStyle])  ▪  (RefLink[PlotStyle, paclet:ref/PlotStyle])  ▪  (RefLink[ContourLabels, paclet:ref/ContourLabels])  ▪  (RefLink[Contours, paclet:ref/Contours])  ▪  (RefLink[ContourShading, paclet:ref/ContourShading])}})}})

({{DocumentationFooterIconsRelatedTutorial.png, ({{Tutorials}, {▪(RefLinkPlain[Density and Contour Plots, paclet:tutorial/DensityAndContourPlots])}})}})

({{DocumentationFooterIconsRelatedGuide.png, ({{Related Guides}, {▪(RefLinkPlain[Plotting Options, paclet:guide/PlottingOptions])}})}})