For Programmers: Free Programming Magazines  


Home > Archive > Mathematica > November 2007 > Filling only partly a region in a plot









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Filling only partly a region in a plot
xavier.brusset_@at_**uclouvain.be

2007-11-21, 8:18 am

Hi,
I am trying to represent 2 curves and grey part of the region between them
in a 2D graph.
The pb is how to make the plot representing the whole of the functions over
their domains and yet only grey out some area without going to the expense
of making 2 graphs and then combining them.


Thx.
Rgds

--
Xavier Brusset
PhD
Université Catholique de Louvain

Bill Rowe

2007-11-22, 4:40 am

On 11/21/07 at 6:01 AM, xavier.brusset_@at_**uclouvain.be wrote:

>Hi, I am trying to represent 2 curves and grey part of the region
>between them in a 2D graph. The pb is how to make the plot
>representing the whole of the functions over their domains and yet
>only grey out some area without going to the expense of making 2
>graphs and then combining them.


With version 6, you can use the Filling option, i.e.,

Plot[{x, x^2}, {x, 0, 2}, Filling->True]

With previous versions, you can use the function FilledPlot in
the package Graphics`FilledPlot`
--
To reply via email subtract one hundred and four

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com