Message Boards Message Boards

0
|
2387 Views
|
2 Replies
|
1 Total Likes
View groups...
Share
Share this post:

How to get PlotLegends to display values of a variable?

Posted 1 year ago
POSTED BY: Lewis Jones
2 Replies

If you are using notebook specific contexts (I do to avoid polluting the Global namespace) then

ClearAll[Evaluate[Context[] <> "*"]]
POSTED BY: Rohit Namjoshi

Lewis, you have to convert the respective value of t into a string first, e.g.:

PlotLegends -> "t=" <> ToString[t]

EDIT: Just as an aside - ClearSystemCache[] does not clear old definitions, etc.. I guess you rather want

ClearAll["Global`*"]

or Clear[] or Remove[]

POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract