Changeset 22622


Ignore:
Timestamp:
03/23/18 13:37:18 (7 years ago)
Author:
Eric.Larour
Message:

CHG: thicknenss and color of coastline.

Location:
issm/branches/trunk-larour-NatGeoScience2016/src/m/plot
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/applyoptions.m

    r22481 r22622  
    335335
    336336%coastlines
    337 if exist(options,'coastline'),
     337if exist(options,'coastline')| exist(options,'coastlines'),
    338338        plot_coastlines(md.mesh,options);
    339339end
     
    404404        if exist(options,'basin'),
    405405                [mdx mdy]=basinzoom(options);
     406        elseif exist(options,'xlim') | exist(options,'ylim'),
     407                mdx=getfieldvalue(options,'xlim');
     408                mdy=getfieldvalue(options,'ylim');
    406409        else
    407410                mdx=[min(md.mesh.x)-offset max(md.mesh.x)+offset];
     
    410413        line(A.x,A.y,ones(size(A.x)),'color','b');
    411414        patch([Ax(1)  Ax(2)  Ax(2)  Ax(1) Ax(1)],[Ay(1)  Ay(1)  Ay(2)  Ay(2) Ay(1)],[1 1 1],'EdgeColor',[0 0 0],'LineWidth',1,'FaceLighting','none')
    412         patch([mdx(1) mdx(2) mdx(2) mdx(1)],[mdy(1) mdy(1) mdy(2) mdy(2)],ones(4,1),'EdgeColor',[0 0 0],'FaceColor','r','FaceAlpha',0.5)
     415        patch([mdx(1) mdx(2) mdx(2) mdx(1)],[mdy(1) mdy(1) mdy(2) mdy(2)],ones(4,1),'EdgeColor',[0 0 0],'FaceColor','r')
     416        %,'FaceAlpha',0.5)
    413417        colorbar('off');
    414418        %back to main gca
  • TabularUnified issm/branches/trunk-larour-NatGeoScience2016/src/m/plot/plot_coastlines.m

    r22247 r22622  
    1111
    1212%retrieve some variables:
    13 color=getfieldvalue(options,'coast_color','k');
     13
    1414
    1515load ./Data/coastlines
    1616[x,y,z]=AboveGround(coastlat,coastlon,mesh.r(1),1000);
    17 hold on, p=plot3(x,y,z,'k-'); set(p,'Color',color);
     17hold on, p=plot3(x,y,z,'k-');
     18set(p,'Color',getfieldvalue(options,'coast_color','k'));
     19set(p,'LineWidth',getfieldvalue(options,'coast_linewidth',1));
    1820
Note: See TracChangeset for help on using the changeset viewer.