Grouping legend entries and adding group identification
Show older comments
OK, I've struggled with the legend doc and the discussion on graphic object groups and the examples therein but doesn't fit the desired effect as near as can tell...
I've a group of lines in a plot, say three which are one set of projected spending levels and another set of three which are historical actual values for the same three classes.
Legend is easy enough to label all six; what I'd like is to group the two sets with an additional label above the two sets that identifies the three subsequent as belong to that class yet retain the labels for the individuals as there's a small distinction to be make per each.
Some time back another poster asked similar and the solution I came up with was to insert a fake non-plotting line that could be used for the legend of the group but it was klunky and error prone at best.
So the question is again is there a better way?
Answers (1)
Sean de Wolski
on 31 Oct 2014
0 votes
Are you using R2014b?
In older releases, Kelly's LegendFlex does a decent job and she mentions that it's been updated for R2014b.
1 Comment
Categories
Find more on Legend in Help Center and File Exchange
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!