Group Abstract Group Abstract

Message Boards Message Boards

0
|
3.7K Views
|
2 Replies
|
1 Total Like
View groups...
Share
Share this post:

Make PlotLabels label multiple plots on the same graphic

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}]
POSTED BY: Jay Gourley
2 Replies

Yes, it does the trick nicely. Thanks Martijn Froeling.

POSTED BY: Jay Gourley

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}]
POSTED BY: Martijn Froeling
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard