Changeset 12166


Ignore:
Timestamp:
05/01/12 16:21:06 (13 years ago)
Author:
cborstad
Message:

colorbar ylims to get rid of white space at bottom of colorbar

Location:
issm/trunk-jpl/src/m/model/plot
Files:
2 edited

Legend:

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

    r12089 r12166  
    219219                warning on MATLAB:log:logOfZero;
    220220                set(c,'YTickLabel',labels);
     221        end
     222        if exist(options,'cbYLim');
     223                set(c,'YLim',getfieldvalue(options,'cbYLim'));
    221224        end
    222225        if exist(options,'colorbartitle'),
  • issm/trunk-jpl/src/m/model/plot/plot_gridded.m

    r12089 r12166  
    4040        data_max=max(data_grid(:));
    4141end
     42options=changefieldvalue(options,'cbYLim',[data_min data_max]);
    4243if whitepos==1,
    4344        white  =data_max + (data_max-data_min)/55;
Note: See TracChangeset for help on using the changeset viewer.