Message Boards Message Boards

0
|
9910 Views
|
4 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Plot legend

Posted 9 years ago
POSTED BY: ash ash
4 Replies

The PlotLegends package is a bit old, but still useful.

You can also use LineLegend:

LineLegend[{Red, Green, Blue}, {"red", "green", "blue"}]

This creates a separate legend and then you can join it to the panel using GraphicsRow:

GraphicsRow[{Panel[...], LineLegend[...]}]
POSTED BY: Sean Clarke
Posted 9 years ago

PlotLegends should be an argument of ListLinePlot, for instance:

ListLinePlot[Prime[Range[25]], Filling -> Axis, PlotLegends -> "Prime Numbers"]
POSTED BY: Xavier Roy
Posted 9 years ago

Hi,

PlotLegend (with a capital L) works by calling the package PlotLegends

Needs["PlotLegends`"]

Otherwise you can also try PlotLegends (so with an 's' at the end) which does not need any package.

Best, Xavier

POSTED BY: Xavier Roy
Posted 9 years ago
POSTED BY: ash ash
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