Changeset 6708


Ignore:
Timestamp:
12/10/10 07:51:43 (14 years ago)
Author:
seroussi
Message:

Apply caxis before taking log

File:
1 edited

Legend:

Unmodified
Added
Removed
  • issm/trunk/src/m/model/plot/processdata.m

    r6497 r6708  
    126126        if exist(options,'log'),
    127127                bounds=getfieldvalue(options,'caxis',[min(data(:)) max(data(:))]);
    128                 if any(data<=0) & min(bounds)<0,
     128                data(find(data<bounds(1)))=bounds(1);
     129                if any(data<=0),
    129130                        error('Log option cannot be applied on negative values. Use caxis option (Rignot''s settings: [1.5 max(data)])');
    130131                end
Note: See TracChangeset for help on using the changeset viewer.