Changeset 18657


Ignore:
Timestamp:
10/20/14 06:31:29 (10 years ago)
Author:
Mathieu Morlighem
Message:

CHG: title should be an option

File:
1 edited

Legend:

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

    r18592 r18657  
    1212%
    1313%   See also EXPMASTER, EXPDOC
     14
     15%Get options
     16options = pairoptions();
    1417
    1518%check nargin
     
    5558                        plot(domain(i).x*unitmultiplier,domain(i).y*unitmultiplier,linestyle,'linewidth',linewidth);
    5659          end
    57                 text(domain(i).x(1)*unitmultiplier,domain(i).y(1)*unitmultiplier,domain(i).name,'BackgroundColor',[.7 .9 .7]);
     60          if exist(options,'title')
     61                  text(domain(i).x(1)*unitmultiplier,domain(i).y(1)*unitmultiplier,domain(i).name,'BackgroundColor',[.7 .9 .7]);
     62          end
    5863  end
    5964end
Note: See TracChangeset for help on using the changeset viewer.