legend Create a legend and make it match the background
0001 function l = legend( varargin ) 0002 %legend Create a legend and make it match the background 0003 0004 % Copyright 2011 The MathWorks, Inc. 0005 0006 l = legend( varargin{:} ); 0007 figh = ancestor( l, 'figure' ); 0008 set( l, 'Color', get( figh, 'Color' ) );