Changeset 8929
- Timestamp:
- 07/12/11 16:43:22 (14 years ago)
- Location:
- issm/trunk/src/m/model/plot
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/model/plot/applyoptions.m
r8735 r8929 59 59 60 60 %axis 61 set(gca,'FontSize', fontsize);61 set(gca,'FontSize',getfieldvalue(options,'axisfontsize',fontsize));; 62 62 if exist(options,'axis') 63 63 eval(['axis ' getfieldvalue(options,'axis')]); … … 70 70 end 71 71 72 if exist(options,'z'), 73 axis square; 74 end 75 72 %box 73 if exist(options,'box') 74 eval(['box ' getfieldvalue(options,'box')]); 75 end 76 76 77 77 %xlim -
issm/trunk/src/m/model/plot/latlonoverlay.m
r7674 r8929 90 90 else label=[num2str(abs(lat)) '^{\circ}N']; end 91 91 th=text(xcorner,ycorner,label); 92 set(th,'Color',colornumber,'Rotation',angle,'FontSize',fontsize,'HorizontalAlignment','center','VerticalAlignment','middle' );92 set(th,'Color',colornumber,'Rotation',angle,'FontSize',fontsize,'HorizontalAlignment','center','VerticalAlignment','middle','Clipping','on'); 93 93 94 94 %erase line and redraw it in two parts, to leave space for latitude number … … 96 96 line(x(1:ind-latgap),y(1:ind-latgap),'Color',color);hold on; 97 97 line(x(ind+latgap:end),y(ind+latgap:end),'Color',color); 98 set(gcf,'InvertHardcopy','off'); 98 99 end 99 100 … … 133 134 else label=[num2str(abs(lon)) '^{\circ}E']; end 134 135 th=text(xcorner,ycorner,label); 135 set(th,'Color',colornumber,'Rotation',angle,'FontSize',fontsize,'HorizontalAlignment','center','VerticalAlignment','middle' );136 set(th,'Color',colornumber,'Rotation',angle,'FontSize',fontsize,'HorizontalAlignment','center','VerticalAlignment','middle','Clipping','on'); 136 137 137 138 %erase line and redraw it in two parts, to leave space for latitude number -
issm/trunk/src/m/model/plot/plot_gridded.m
r8472 r8929 35 35 data_max=max(data_grid(:)); 36 36 end 37 white =data_m in -(data_max-data_min)/55;38 options=changefieldvalue(options,'caxis',[ white data_max]);37 white =data_max + (data_max-data_min)/55; 38 options=changefieldvalue(options,'caxis',[data_min white]); 39 39 data_grid(isnan(data_grid))=white; 40 40 41 41 %Select plot area 42 42 subplot(plotlines,plotcols,i); 43 %uncomment following lines to have more space44 %P=get(gca,'pos');45 %P(3)=P(3)+0.05;46 %P(4)=P(4)+0.03;47 %P(1)=P(1)-0.02;48 %set(gca,'pos',P);49 43 50 44 %shading interp; 51 45 h=imagesc(xlim,ylim,data_grid);set(gca,'YDir','normal'); 52 46 map=getfieldvalue(options,'colormap',jet); 53 map( 1,:)=[1 1 1];47 map(end,:)=[1 1 1]; 54 48 options=changefieldvalue(options,'colormap',map); 55 49 -
issm/trunk/src/m/model/plot/plot_manager.m
r8472 r8929 172 172 subplot(nlines,ncols,i); 173 173 174 %apply position change:175 if exist(options,'position')176 set(gca,'Position',getfieldvalue(options,'position'));177 end178 179 174 %plot unit 180 175 plot_unit(x,y,z,elements,data2,is2d,isplanet,datatype,options); 181 182 176 183 177 %apply all options … … 199 193 %call routine to build kml file and image that goes with it. 200 194 kmlgroundoverlay(md,options); 201 202 195 end
Note:
See TracChangeset
for help on using the changeset viewer.