Changeset 6167


Ignore:
Timestamp:
10/06/10 12:05:02 (14 years ago)
Author:
Mathieu Morlighem
Message:

minor: frame around inset

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

Legend:

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

    r6088 r6167  
    5757%Must be done here so that it uses the same xlim and ylim as plot_overlay
    5858%these are changed by axis that follows
    59 if exist(options,'latlon')
     59if strcmpi(getfieldvalue(options,'latlon','off'),'on')
    6060        latlonoverlay(options);
    6161end
     
    130130                c=colorbar;
    131131        end
    132         set(c,'FontSize',getfieldvalue(options,'colorbarfontsize',14));
     132        set(c,'FontSize',getfieldvalue(options,'colorbarfontsize',fontsize));
    133133        if exist(options,'wrapping')
    134134                lim=get(c,'Ylim');
     
    187187if exist(options,'text');
    188188        textstring=getfieldvalue(options,'text');
    189         textweight=getfieldvalue(options,'textweight');
     189        textweight=getfieldvalue(options,'textweight','b');
    190190        textsize=getfieldvalue(options,'textsize');
    191191        textcolor=getfieldvalue(options,'textcolor');
  • issm/trunk/src/m/model/plot/plot_manager.m

    r6134 r6167  
    180180        PosInset=[cplotpos(1)+insetpos(1)*cplotpos(3),cplotpos(2)+insetpos(2)*cplotpos(4), insetpos(3)*cplotpos(3), insetpos(4)*cplotpos(4)];
    181181        %show pos
     182        X1=getfieldvalue(options,'insetx',[min(x) max(x)]);
     183        Y1=getfieldvalue(options,'insety',[min(y) max(y)]);
    182184        if strcmpi(getfieldvalue(options,'showinset','off'),'on')
    183                 X1=getfieldvalue(options,'insetx',[min(x) max(x)]);
    184                 Y1=getfieldvalue(options,'insety',[min(y) max(y)]);
    185185                line(X1([1 2 2 1 1]),Y1([1 1 2 2 1]),zeros(1,5),'Color','k','LineWidth',2);
    186186        end
     
    189189        axes('pos',PosInset);
    190190        box('on')
     191        patch('Faces',[1 2 3 4 1],'Vertices',[X1([1 2 2 1])' Y1([1 1 2 2])' -10^10*ones(4,1)],'FaceColor','w','EdgeColor','k');
     192        hold on
    191193        plot_unit(x,y,z,elements,data2,is2d,datatype,options);
    192194
  • issm/trunk/src/m/model/plot/plot_unit.m

    r5867 r6167  
    99%edgecolor
    1010edgecolor=getfieldvalue(options,'edgecolor','none');
    11 %P=get(gca,'pos');
     11%P=get(gca,'pos')
    1212%P(3)=P(3)+0.04;
    1313%P(1)=P(1)-0.02;
Note: See TracChangeset for help on using the changeset viewer.