Changeset 12961


Ignore:
Timestamp:
08/09/12 16:35:14 (13 years ago)
Author:
schlegel
Message:

CHG: allow exp linestyle color to also be passed as numeric

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk-jpl/src/m/utils/Exp/expdisp.m

    r12148 r12961  
    4545figure(figurenumber),hold on
    4646for i=1:length(domain),
    47         plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle,'linewidth',linewidth);
     47        if (isnumeric(linestyle))
     48                plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,'Color',linestyle,'linewidth',linewidth);
     49        else
     50                plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle,'linewidth',linewidth);
     51        end
    4852end
Note: See TracChangeset for help on using the changeset viewer.