Changeset 8929


Ignore:
Timestamp:
07/12/11 16:43:22 (14 years ago)
Author:
Mathieu Morlighem
Message:

Deleted some duplicated options, plot_gridded now uses white for max value instead of min

Location:
issm/trunk/src/m/model/plot
Files:
4 edited

Legend:

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

    r8735 r8929  
    5959
    6060%axis
    61 set(gca,'FontSize',fontsize);
     61set(gca,'FontSize',getfieldvalue(options,'axisfontsize',fontsize));;
    6262if exist(options,'axis')
    6363        eval(['axis ' getfieldvalue(options,'axis')]);
     
    7070end
    7171
    72 if exist(options,'z'),
    73         axis square;
    74 end
    75 
     72%box
     73if exist(options,'box')
     74        eval(['box ' getfieldvalue(options,'box')]);
     75end
    7676
    7777%xlim
  • issm/trunk/src/m/model/plot/latlonoverlay.m

    r7674 r8929  
    9090                        else      label=[num2str(abs(lat)) '^{\circ}N']; end
    9191                        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');
    9393
    9494                        %erase line and redraw it in two parts, to leave space for latitude number
     
    9696                        line(x(1:ind-latgap),y(1:ind-latgap),'Color',color);hold on;
    9797                        line(x(ind+latgap:end),y(ind+latgap:end),'Color',color);
     98                        set(gcf,'InvertHardcopy','off');
    9899                end
    99100
     
    133134                        else      label=[num2str(abs(lon)) '^{\circ}E']; end
    134135                        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');
    136137
    137138                        %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  
    3535        data_max=max(data_grid(:));
    3636end
    37 white  =data_min - (data_max-data_min)/55;
    38 options=changefieldvalue(options,'caxis',[white data_max]);
     37white  =data_max + (data_max-data_min)/55;
     38options=changefieldvalue(options,'caxis',[data_min white]);
    3939data_grid(isnan(data_grid))=white;
    4040
    4141%Select plot area
    4242subplot(plotlines,plotcols,i);
    43 %uncomment following lines to have more space
    44 %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);
    4943
    5044%shading interp;
    5145h=imagesc(xlim,ylim,data_grid);set(gca,'YDir','normal');
    5246map=getfieldvalue(options,'colormap',jet);
    53 map(1,:)=[1 1 1];
     47map(end,:)=[1 1 1];
    5448options=changefieldvalue(options,'colormap',map);
    5549
  • issm/trunk/src/m/model/plot/plot_manager.m

    r8472 r8929  
    172172subplot(nlines,ncols,i);
    173173
    174 %apply position change:
    175 if exist(options,'position')
    176         set(gca,'Position',getfieldvalue(options,'position'));
    177 end
    178 
    179174%plot unit
    180175plot_unit(x,y,z,elements,data2,is2d,isplanet,datatype,options);
    181        
    182176
    183177%apply all options
     
    199193        %call routine to build kml file and image that goes with it.
    200194        kmlgroundoverlay(md,options);
    201 
    202195end
Note: See TracChangeset for help on using the changeset viewer.