Two lines / columns in legend when using IRIS report object

Topics: Reporting
Jun 8, 2014 at 4:49 PM

I am using IRIS report object to create a PDF report with many graphs. For some graphs, I would like to use horizontally oriented legend outside of the graph, because vertically oriented legend compresses the width of the graph. However, more than 10 series in graph make the legend wider than the page. Could you please advise on how to break the legend in two lines?


Jun 8, 2014 at 5:48 PM
This feature does not exist in standard Matlab -- unless you use a third-party function or write your own that manually creates the legend as an axes object with text and line objects etc inside it from scratch.

Marked as answer by jaromirbenes on 6/8/2014 at 10:48 AM
Jun 8, 2014 at 6:07 PM

I tried using gridLegend from Matlab file exchange, which works for Matlab figures. But when I capture the figure using report.userfigure, the legend is corrupted.