Changeset 13975 for issm/trunk/src/m/plot/applyoptions.m
- Timestamp:
- 11/16/12 08:10:16 (12 years ago)
- Location:
- issm/trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk
- Property svn:mergeinfo changed
/issm/trunk-jpl merged: 13397-13398,13401,13407-13582,13584-13974
- Property svn:mergeinfo changed
-
issm/trunk/src
- Property svn:mergeinfo changed
-
issm/trunk/src/m/plot/applyoptions.m
r13395 r13975 6 6 % 7 7 % See also: PLOTMODEL, PARSE_OPTIONS 8 9 8 10 9 %some defaults … … 147 146 end 148 147 if exist(options,'log'), 149 nlab= 5;148 nlab=length(get(c,'YTick')); 150 149 logvalue=getfieldvalue(options,'log'); 151 150 … … 176 175 if exist(options,'colorbarYLabel'), 177 176 set(get(c,'Ylabel'),'FontSize',getfieldvalue(options,'colorbarfontsize',fontsize),'String',getfieldvalue(options,'colorbarYLabel'),... 178 'Color',getfieldvalue(options,'FontColor','k') ,'Interpreter',getfieldvalue(options,'Interpreter','none'));177 'Color',getfieldvalue(options,'FontColor','k')); 179 178 end 180 179 if exist(options,'colorbarwidth'), … … 215 214 end 216 215 end 217 labels = cell(1, size(tick_vals,1));218 for i = 1: size(tick_vals,1)219 labels{i} = sprintf('%-3.4g',round_ice(tick_vals(i),2));216 labels = cell(1,numel(tick_vals)); 217 for i = 1:numel(tick_vals) 218 labels{i} = num2str(tick_vals(i)); 220 219 end 221 220 set(c,'YTickLabel',labels); … … 226 225 else 227 226 %do nothing 228 229 end 230 227 228 end 231 229 232 230 %area … … 269 267 end 270 268 269 %curved arrow 270 if exist(options,'curvedarrow'), 271 curvedoptions=getfieldvalue(options,'curvedarrow'); 272 curvedarrow(curvedoptions{:}); 273 end 274 271 275 %Scale ruler 272 276 if exist(options,'scaleruler'), … … 320 324 end 321 325 322 323 326 %position of figure 324 327 if exist(options,'figposition'), 325 328 326 329 figposition=getfieldvalue(options,'figposition'); 327 330 if ischar(figposition), … … 430 433 data=getfieldvalue(options,'scatter'); 431 434 hold on 432 plot_scatter(data(:,1),data(:,2), getfieldvalue(options,'scattersize',3),data(:,3),options);435 plot_scatter(data(:,1),data(:,2),data(:,3),options); 433 436 end 434 437
Note:
See TracChangeset
for help on using the changeset viewer.