ContourShading

ContourShading
is an option for contour plots that specifies how the regions between contour lines should be shaded.

DetailsDetails

  • The following settings can be given:
  • Noneuse no shading
    Automaticuse shading based on ColorFunction
    {g1,g2,...}cyclically use successive directives for successive regions
  • With ContourShading->False, regions between contour lines are left blank.
  • With ContourShading->Automatic, regions are colored based on the setting for the option ColorFunction. The default is to color the regions with gray levels running from black to white with increasing height.
  • The value given as the argument for the ColorFunction function is the average of the values of the contour lines bounding a particular region. If ColorFunctionScaling->True, it is scaled so as to lie between 0 and 1.

ExamplesExamplesopen allclose all

Basic Examples (4)Basic Examples (4)

Shade the regions between contours with colors from the color function:

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

Leave the regions between contours blank:

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

Specify an explicit list of colors to shade the regions between contours:

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

Shade the regions between contours with colors from ColorData:

In[1]:=
Click for copyable input
Out[1]=
New in 2 | Last modified in 6
New to Mathematica? Find your learning path »
Have a question? Ask support »