1
$\begingroup$

I have managed to write this out:

Plot[{8 γ, 8 γ - 2 γ^2}, {γ, 0, 1},  Filling -> {1 -> 10, 1 -> {2}, 2 -> 0}]

But I want to have different colors between these curves. Does anyone know how to do it?

$\endgroup$
1
$\begingroup$
Plot[{8 γ, 8 γ - 2 γ^2}, {γ, 0, 1}, 
 Filling -> {1 -> {10, LightRed}, 1 -> {{2}, LightBlue}, 2 -> {0, LightGreen}}]

enter image description here

Alternatively,

Plot[{8 γ, 8 γ - 2 γ^2}, {γ, 0, 1}, Filling -> { 1 -> 0, 2 -> 10}] 

enter image description here

| improve this answer | |
$\endgroup$

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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