Code covered by the BSD License  

Highlights from
resize_legend

5.0

5.0 | 4 ratings Rate this file 11 Downloads (last 30 days) File Size: 2.37 KB File ID: #2190
image thumbnail

resize_legend

by Denis Gilbert

 

21 Aug 2002 (Updated 28 Sep 2004)

Changes LEGEND fontsize.

| Watch this File

File Information
Description

Changes LEGEND fontsize while maintaining proper alignment between the legend's text strings and line symbols.

Example: Double the fontsize

hLeg = legend(h,'string1','string2',...);
resize_legend(hLeg, 2);

See graphics snapshot below for a DEMO.

MATLAB release MATLAB 5.3.1 (R11.1)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Comments and Ratings (4)
15 Nov 2004 Joel Sander

Very helpful...controlled resize of legends was exactly what I was trying to learn to do...Thanks

22 Nov 2005 shirley du

it's really helpful. it's what i want to achieve in my code. and Thank you!

19 Feb 2007 Michael Wirtz

it's really helpful. thx

05 Nov 2010 Barry  
Please login to add a comment or rating.
Updates
28 Sep 2004

MATLAB 7 compatibility change

Tag Activity for this File
Tag Applied By Date/Time
annotation Denis Gilbert 22 Oct 2008 06:49:01
customization Denis Gilbert 22 Oct 2008 06:49:01
legend Denis Gilbert 22 Oct 2008 06:49:01
fontsize Denis Gilbert 22 Oct 2008 06:49:01
plot annotation Denis Gilbert 22 Oct 2008 06:49:01
graphics Denis Gilbert 22 Oct 2008 06:49:01
resize Denis Gilbert 22 Oct 2008 06:49:01
legend Jason Niu 30 Jul 2009 03:00:39

Contact us at files@mathworks.com