- Timestamp:
- 09/20/20 16:36:58 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified issm/branches/trunk-larour-SLPS2020/src/m/plot/plot_coastlines.m ¶
r25325 r25587 2 2 3 3 %define coastline: {{{ 4 coast=[-83.83 -180 ;... 4 coast=[-90 -180; ... 5 -83.83 -180 ;... 5 6 -84.33 -178 ;... 6 7 -84.5 -174 ;... … … 614 615 -83.5 176 ;... 615 616 -83.83 180 ;... 617 -85 180 ;... 618 -87 180 ;... 619 -90 180 ;... 616 620 NaN NaN ;... 617 621 -77.58 166.33 ;... … … 9866 9870 19.77 -156.05 ;... 9867 9871 19.95 -155.87 ;... 9868 20.27 -155.88 ]; 9872 20.27 -155.88 ;... 9873 NaN NaN]; 9869 9874 9870 coastlat= coast(:,1);9871 coastlon= coast(:,2);9875 coastlat=[coast(:,1); coast(:,1)]; 9876 coastlon=[coast(:,2); coast(:,2)-360]; 9872 9877 9873 9878 %}}} … … 9902 9907 p=polyshape(coastlon,coastlat); 9903 9908 plot(p,'FaceColor','w','FaceAlpha',1); 9909 if strcmpi(getfieldvalue(options,'coordcent','atlantic'),'pacific'), 9910 xlim(getfieldvalue(options,'xlim',[-360 0])); 9911 else 9912 xlim(getfieldvalue(options,'xlim',[-180 180])); 9913 end 9904 9914 %p=plot(coastlon,coastlat,'k-'); 9905 9915 end
Note:
See TracChangeset
for help on using the changeset viewer.