Changeset 14461
- Timestamp:
- 03/20/13 13:31:41 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk-jpl/src/m/plot/manualcb.m
r14418 r14461 22 22 error('zmin should be smaller than zmax'); 23 23 end 24 25 %Get plot axes 26 mainaxes = gca; 24 27 25 28 %process options … … 77 80 end 78 81 else 79 text(ytick,-0.5+zeros(size(ztick)),num2str(ztick'),'HorizontalAlignment','center','VerticalAlignment','top','FontSize',fontsize) 82 %Use FOR LOOP otherwise numbers are not correcly centered 83 for i=1:length(ytick), text(ytick(i),-0.5,num2str(ztick(i)),'HorizontalAlignment','center','VerticalAlignment','top','FontSize',fontsize); end 80 84 if smallbars, 81 85 for i=1:numel(ztick) 82 86 patch([ytick(i) ytick(i)],[0.8 1.0],[ytick(i) ytick(i)],'k') 83 87 patch([ytick(i) ytick(i)],[0.0 0.2],[ytick(i) ytick(i)],'k') 84 85 88 end 86 89 end … … 90 93 title(getfieldvalue(options,'title'),'FontSize',fontsize); 91 94 end 95 if exist(options,'ylabel'), 96 ylabel(getfieldvalue(options,'ylabel'),'FontSize',fontsize); 97 end 92 98 99 %Back to original axes 100 axes(mainaxes); 101 93 102 function delta = dtick(range) 94 103 %Tick intervals
Note:
See TracChangeset
for help on using the changeset viewer.