| time  | Calls  |  line | 
|---|
|  |  |  408  | function leg = find_legend(ha)
 | 
|  |  |  409  | 
 | 
|  |  |  410  | % Using the Legend property of ha, we will find the legend peered to
 | 
|  |  |  411  | % the current axes.
 | 
| < 0.001  |       8  |  412 | if isempty(ha) || ~ishghandle(ha) 
 | 
|  |  |  413  |     leg = gobjects(0);
 | 
|  |  |  414  |     return;
 | 
| < 0.001  |       8  |  415 | end 
 | 
|  |  |  416  | 
 | 
|  |  |  417  | % get the graphics Axes so we can handle the plotyy case generally
 | 
|   0.002  |       8  |  418 | leg = matlab.graphics.illustration.Legend.empty; 
 | 
|   0.001  |       8  |  419 | ha = getGraphicsAxes(leg,ha); 
 | 
|  |  |  420  | 
 | 
|  |  |  421  | % If we have the submissive plotyy axes, get the real one
 | 
| < 0.001  |       8  |  422 | if isappdata(ha,'graphicsPlotyyPeer') && ... 
 | 
|  |  |  423  |    isvalid(getappdata(ha,'graphicsPlotyyPeer')) && ...
 | 
|  |  |  424  |    strcmp(ha.Color,'none')
 | 
|  |  |  425  |     ha = getappdata(ha,'graphicsPlotyyPeer');
 | 
| < 0.001  |       8  |  426 | end 
 | 
|  |  |  427  | 
 | 
| < 0.001  |       8  |  428 | leg = ha.Legend; 
 | 
Other subfunctions in this file are not included in this listing.