Document 639

Creating shaded regions in plots

Version: 5.x - Scientific WorkPlace & Scientific Notebook

Adapt this method to create shaded regions in your plots.

  1. Define $f\left( x\right) $, $g\left( x\right) $, $a$, $b$, and $n$, where MATH on the interval $a\leq x\leq b$ and $n$ is a (large) positive integer.

  2. Plot MATH

  3. Revise the plot so that Interval is $0\leq t\leq 1$ and the Points Sampled is $n+1$.

Here's an example of how well this method works:

  1. From the Compute menu, choose New Definition to create these new definitions:

    MATH

    MATH

    $a=-1$

    $b=2$

  2. Enter MATH

  3. From the Compute menu, choose Plot 2D and then choose Parametric.

  4. On the Items Plotted tab, choose Variables and Intervals.

  5. Revise the plot so that Interval is $0\leq t\leq 1$ and the Points Sampled is $301$, and choose OK.

  6. On the Items Plotted tab, change the Plot Color to yellow and the Line Thickness to Thick.

  7. Choose OK.

    You see this plot with the shaded area.


    Shaded plot

See also 618: Shading regions in graphs.

Last revised 01/23/06