# Filling between two curves in Mathematica [closed]

I want to fill region between 2 curves, but in Mathematica 8.0:

FilledListPlot[list1, list2, Fills -> {RGBColor[f, f, f]}]


doesn't work.

-

## migration rejected from math.stackexchange.comJun 14 at 14:52

This question came from our site for people studying math at any level and professionals in related fields. Votes, comments, and answers are locked due to the question being closed here, but it may be eligible for editing and reopening on the site where it originated.

## closed as off-topic by Öskå, Yves Klett, Artes, Mr.Wizard♦Jun 14 at 14:52

This question appears to be off-topic. The users who voted to close gave this specific reason:

• "This question arises due to a simple mistake such as a trivial syntax error, incorrect capitalization, spelling mistake, or other typographical error and is unlikely to help any future visitors, or else it is easily found in the documentation." – Öskå, Yves Klett, Artes, Mr.Wizard
If this question can be reworded to fit the rules in the help center, please edit the question.

Please try Plot[{Sin[x], Cos[x]}, {x, 0, 2 Pi}, Filling -> {1 -> {{2}, Yellow}}] –  Claude Leibovici Jun 14 at 12:40
–  Artes Jun 14 at 13:39

Some additional "bells and whistles"

\$Version


"8.0 for Mac OS X x86 (64-bit) (October 5, 2011)"

Needs["PlotLegends"];

m = 6;
list1 = Table[2^(n - 2.5), {n, m}];
list2 = Table[Fibonacci[n], {n, m}];

ListLinePlot[
{list1, list2},
PlotStyle -> Thick,
Filling -> (1 -> {2}),
FillingStyle -> {LightRed, LightBlue},
(* color by which list value is greater *)
PlotLegend -> {"list1", "list2"},
LegendPosition -> {-.2, -.1},
`