Mathematica 9 is now available
Student Support Forum
-----
Student Support Forum: 'Filling areas in a plot' topicStudent Support Forum > General > "Filling areas in a plot"

< Previous CommentHelp | Reply To Comment | Reply To Topic
Author Comment/Response
Peter Pein
11/10/12 05:26am

Hi,

how about combinig two plots?

Show[
{Plot[{Tan[x], -1, 1}, {x, -Pi, Pi},
Exclusions -> {-1, 1} Pi/2, PlotRange -> {-3, 3},
PlotStyle -> {Blue, None, None},
Filling -> {2 -> {{3}, Yellow}}],
Plot[Tan[x], {x, -Pi, Pi},
Exclusions -> {-1, 1} Pi/2, PlotRange -> {-1, 1},
Filling -> {1 -> {0, Lighter@Red}}, PlotStyle -> Blue]}]

URL: ,

Subject (listing for 'Filling areas in a plot')
Author Date Posted
Filling areas in a plot Andreas 11/09/12 03:13am
Re: Filling areas in a plot Peter Pein 11/10/12 05:26am
< Previous CommentHelp | Reply To Comment | Reply To Topic