0

I want to use Plot with a SetDelay. Then Filling does not work. In the following, the first works, the second does not. I would like to get the second to work:

Plot[{x, 2 x}, {x, 0, 5}, Filling -> {1 -> {{2}, LightBlue}}]

test[x_] := {x, 2 x}
Plot[test[x], {x, 0, 5}, Filling -> {1 -> {{2}, LightBlue}}]
Mockup Dungeon
  • 1,854
  • 12
  • 16
  • Add Evauated option: Plot[test[x], {x, 0, 5}, Filling -> {1 -> {{2}, LightBlue}}, Evaluated -> True] – Acus Dec 02 '14 at 09:23
  • Great! Thank a lot, this works. I have to look into Evaluated. -- If you post is as an answer, I can rate it. – Mockup Dungeon Dec 02 '14 at 09:38
  • @Öskå you might be right, but I couldn't find it in the help menu. I also checked whether I could find something here. If a command is missing, it is hard to find what is missing. I'm glad I got an answer. – Mockup Dungeon Dec 02 '14 at 10:33

0 Answers0