Changeset 13828


Ignore:
Timestamp:
10/25/12 11:22:04 (12 years ago)
Author:
Eric.Larour
Message:

CHG: added more optoins to control legend

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/plot/plot_riftrelvel.m

    r13730 r13828  
    9494        segments=md.rifts.riftstruct(i).segments(:,1:2);
    9595end
     96
     97faulttitle=getfieldvalue(options','faulttitle','faults');
     98rifttitle=getfieldvalue(options','rifttitle','rifts');
    9699%legend
    97100if strcmpi(getfieldvalue(options,'legend','on'),'on'),
    98101        if isp1 & isp2
    99                 l=legend([h1,h2,p1,p2],'mesh boundaries','crack tips','faults','rifts');
     102                l=legend([h1,h2,p1,p2],'mesh boundaries','crack tips',faulttitle,rifttitle);
    100103        elseif isp1
    101                 l=legend([h1,h2,p1],'mesh boundaries','crack tips','faults');
     104                l=legend([h1,h2,p1],'mesh boundaries','crack tips',faulttitle);
    102105        elseif isp2
    103                 l=legend([h1,h2,p2],'mesh boundaries','crack tips','rifts');
     106                l=legend([h1,h2,p2],'mesh boundaries','crack tips',rifttitle);
    104107        else
    105108                l=legend([h1,h2],'mesh boundaries','crack tips');
Note: See TracChangeset for help on using the changeset viewer.