Group Abstract Group Abstract

Message Boards Message Boards

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

Plot legend

Posted 10 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 10 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 10 years ago
POSTED BY: ash ash
Posted 10 years ago
POSTED BY: Xavier Roy
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard