Mathematica Stack Exchange is a question and answer site for users of Mathematica. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

LogLogPlot does not output legends correctly

When I give lists of functions to LogPlot or LogLogPlot with the option of PlotLegends, the output legends only have its first one, just like on the image below.

What should I do to get all legends in the plot?

share|improve this question
Evaluate@pdata in the second plot, but you really should make pdata a function... and please, in the future, post code, not images. See the help for information on how. – ciao May 1 '14 at 9:08
up vote 2 down vote accepted

Using Evaluate for your variable will allow PlotLegends to work. For example:

llist = {1, 2, 3};
pdata = {x, x^2, x^3};
LogLogPlot[Evaluate@pdata, {x, 1, 10}, PlotLegends -> llist]

gives:enter image description here


LogPlot[Evaluate@pdata, {x, 1, 10}, PlotLegends -> llist]

enter image description here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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