Mathematica 9 is now available
 Documentation / Mathematica / Built-in Functions / Graphics and Sound / Contour Options  /
ContourShading

  • ContourShading is an option for contour plots which specifies whether the regions between contour lines should be shaded.
  • With ContourShading -> False, regions between contour lines are left blank.
  • With ContourShading -> True, 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, scaled so that it lies between 0 and 1.
  • See the Mathematica book: Section 1.9.6Section 2.9.7.

    Further Examples

    This compares two contour plots, one with the contour shading on, the other with it turned off.

    Evaluate the cells to compare the graphics.

    In[1]:=

    In[2]:=



    Any questions about topics on this page? Click here to get an individual response.Buy NowMore Information
    THIS IS DOCUMENTATION FOR AN OBSOLETE PRODUCT.
    SEE THE DOCUMENTATION CENTER FOR THE LATEST INFORMATION.