| Author |
Comment/Response |
Laura F
|
11/29/07 10:53am
I have written the following code to plot a function for different values of the variable dM. Is there a way to add a legend to specify which output colour assigned by Mathematica corresponds to which value of dM? I have tried doing this following the example given in the Help Documentation for "Inset", however I have not been able to modify the code successfully.
Many thanks!
dF := 1 - dM
c1 := (dF + dM)^z >= p (dF + dM/W)^z W
c2 := 3 (dF + dM)^z >= (dF + 2 dM + dF W)^z
p10d10 := {c1 && c2} /. {p -> 1, dM -> 1}
p10d09 := {c1 && c2} /. {p -> 1, dM -> 0.9}
p10d08 := {c1 && c2} /. {p -> 1, dM -> 0.8}
p10d07 := {c1 && c2} /. {p -> 1, dM -> 0.7}
RegionPlot[{p10d10, p10d09, p10d08, p10d07}, {W, 1, 10}, {z, 0, 2}]
URL: , |
|