Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

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.com Jun 14 '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 '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 '14 at 12:40
Related: How to plot a curve with border around the line? –  Artes Jun 14 '14 at 13:39

1 Answer 1

Some additional "bells and whistles"


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


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

 {list1, list2},
 PlotStyle -> Thick,
 Filling -> (1 -> {2}),
 FillingStyle -> {LightRed, LightBlue},
 (* color by which list value is greater *)
 PlotLegend -> {"list1", "list2"},
 LegendPosition -> {-.2, -.1},
 LegendShadow -> None,
 LegendBorder -> None,
 LegendSize -> 0.5]

enter image description here


Not the answer you're looking for? Browse other questions tagged or ask your own question.