2
$\begingroup$

enter image description here

Can "plotlegend" do that? I cannot find a proper function.

$\endgroup$
1

1 Answer 1

7
$\begingroup$
Plot[{Sin[x], Cos[x]}, {x, 0, 5}, 
      PlotStyle   -> {Blue, Red}, 
      PlotLegends -> Placed[Framed@LineLegend[{Blue, Red}, {"L1", "L2"}, LegendLayout -> "Row"], 
                            Below]]

enter image description here

$\endgroup$
2
  • $\begingroup$ What you use is mathematica 8 or 9? I cannot plot the picture like the above one to use mathematica 8. $\endgroup$
    – Mark_Phys
    Nov 21, 2013 at 23:33
  • 1
    $\begingroup$ @user10709 Those functions have been added in version 9. I don't have v8 available now to play with. Please when you want a solution for a problem in a previous version, state that at the question. $\endgroup$ Nov 22, 2013 at 11:47

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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