0
$\begingroup$

I am using Mathematica 8.0.1.0 and when I use PlotLegend the names disappear.

Could you help me fix it?

Thank you.

<< "PlotLegends`"; 
Plot[{Sin[x], Cos[x]}, {x, -2*Pi, 2*Pi}, PlotLegend -> {"Sine", "Cosine"}]

enter image description here

$\endgroup$
8
  • 3
    $\begingroup$ Use this answer instead of the PlotLegends package for version 8.0.1. It is not worth the time and trouble to work with the built-in package. $\endgroup$
    – rm -rf
    Mar 12, 2016 at 23:11
  • $\begingroup$ Thank you. I will study these functions. $\endgroup$
    – emnha
    Mar 12, 2016 at 23:13
  • 1
    $\begingroup$ If the suggestion by @R.M. works for you, I would propose closing the question because there is no great likelihood that anyone will be able to fix this particular problem. It's one of so many bugs that it's fair to say nobody cares about the PlotLegends package anymore, particularly since it's obsolete now. Also, I can't actually reproduce that issue in version 8 on Mac... maybe you're on Linux? $\endgroup$
    – Jens
    Mar 12, 2016 at 23:15
  • $\begingroup$ Hi, I use Windows. $\endgroup$
    – emnha
    Mar 12, 2016 at 23:23
  • 1
    $\begingroup$ OK - then you should definitely try to use the linked answer, e.g., by doing autoLegend[ Plot[{Sin[x], Cos[x]}, {x, -2*Pi, 2*Pi}], {"Sine", "Cosine"}] $\endgroup$
    – Jens
    Mar 13, 2016 at 0:51

0

Browse other questions tagged or ask your own question.