jgourle2
(Jay Gourley)
1
How do I make PlotLabels label multiple plots? I want each of the five plots labeled with its value of t.
u = E^t (4 - 4 E^t + E^t x)^2
Plot[u /. t -> {0, .2, .4, .8, 1.6}, {x, -5, 5},
AxesLabel -> {x, "u"}, PlotRange -> {0, 200},
PlotLabels -> {0, .2, .4, .8, .1.6}]
mfroeling
(Martijn Froeling)
2
This should do the trick.
u = E^t (4 - 4 E^t + E^t x)^2
Plot[Evaluate[u /. t -> {0, .2, .4, .8, 1.6}], {x, -5, 5},
AxesLabel -> {x, "u"}, PlotRange -> {0, 200},
PlotLegends -> {0, .2, .4, .8, .1, .6}]
jgourle2
(Jay Gourley)
3
Yes, it does the trick nicely. Thanks Martijn Froeling.