I have something plotted on [-6,6] but I would like to fill only the part from [-5,5] (to the axis). I'm looking through the documentation but I'm not terribly well-versed in Mathematica and can't seem to find what I'm looking for. Help is appreciated!
Asked
Active
Viewed 2,427 times
5
1 Answers
5
f[{r1_, r2_}, opts___] := Plot[Sin[x], {x, r1, r2}, opts]
Show[f[{-6, 6}], f[{-5, 5}, Filling -> Axis]]

Dr. belisarius
- 115,881
- 13
- 203
- 453
-
Great, thank you so much! I was resorting to doing a second, completely separate plot of the function on a smaller domain and Showing both of those, seemed so inelegant. – user11651 Jan 10 '14 at 05:41
Filling– Nasser Jan 10 '14 at 04:46