Changeset 2501
- Timestamp:
- 10/22/09 16:19:39 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r2498 r2501 99 99 %colorbar 100 100 if getfieldvalue(options,'colorbar',1)~=0, 101 if ~isnan(options_structure.colorbarcornerposition),102 c=colorbar( options_structure.colorbarcornerposition);101 if exist(options,'colorbarcornerposition'), 102 c=colorbar(getfieldvalue(options,'colorbarcornerposition')); 103 103 else 104 104 c=colorbar; … … 132 132 if exist(options,'colorbartitle'), 133 133 backup=gca; 134 axes(c);lab=ylabel(options_structure.colorbartitle); 135 if ~isnan(options_structure.colorbartitlerotation), 136 set(lab,'Rotation',options_structure.colorbartitlerotation); 137 else 138 set(lab,'Rotation',-90); 139 end 134 axes(c);lab=ylabel(getfieldvalue(options,'colorbartitle')); 135 set(lab,'Rotation',getfieldvalue(options,'colorbartitlerotation',-90)); 140 136 set(lab,'VerticalAlignment','bottom'); 141 137 axes(backup); … … 206 202 207 203 %axes position 208 if ~isnan(options_structure.axesPosition)209 set(gca,'Position', options_structure.axesPosition);210 end 204 if exist(options,'axesPosition') 205 set(gca,'Position',getfieldvalue(options,'axesPosition')); 206 end
Note:
See TracChangeset
for help on using the changeset viewer.