columnlegend
by Simon Henin
28 Apr 2010
(Updated 14 Apr 2013)
Creates a legend with a specified number of columns
|
Watch this File
|
| File Information |
| Description |
UPDATED 04/09/2013.
Thanks to comments for bug fixes/improvements.
Creates a legend with a specified number of columns
usage:
legend_str = [];
for i=1:10,
x = 1:i:(10*i);
plot(x); hold on;
legend_str = [legend_str; {num2str(i)}];
end
columnlegend(3, legend_str, 'Location', 'NorthWest', 'boxon');
PRINTING: If you want to print the figure, you'll have to use a command line printer (e.g. export_fig) as the File->Print option embedded in the figure resets the figure properties including the legend |
| Acknowledgements |
This file inspired
Grid Legend A Multi Column Format For Legends.
|
| MATLAB release |
MATLAB 7.7 (R2008b)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 30 Apr 2010 |
Removed Mac OS hidden files from zip file. |
| 11 May 2010 |
Add instructions for printing figure with columns |
| 08 Feb 2011 |
Added functionality when using markers. |
| 10 Feb 2011 |
Minor bug fix |
| 28 Feb 2011 |
removed hidden files. |
| 09 Apr 2013 |
Updates/Bug Fixes |
| 14 Apr 2013 |
Bug fix |
|
Contact us