Changeset 2698
- Timestamp:
- 12/02/09 09:23:27 (15 years ago)
- Location:
- issm/trunk/src/m/classes/public/plot
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
issm/trunk/src/m/classes/public/plot/applyoptions.m
r2693 r2698 45 45 else 46 46 view(getfieldvalue(options,'view',2)); 47 end 48 49 %latlon 50 %Must be done here so that it uses the same xlim and ylim as plot_overlay 51 %these are changed by axis that follows 52 if exist(options,'latlon') 53 latlonoverlay(options); 47 54 end 48 55 … … 184 191 end 185 192 186 %latlon187 if exist(options,'latlon')188 latlonoverlay(options);189 end190 191 193 %north arrow 192 194 if exist(options,'northarrow'), -
issm/trunk/src/m/classes/public/plot/latlonoverlay.m
r2536 r2698 104 104 xcorner2=x(ind-1); ycorner2=y(ind-1); 105 105 end 106 angle= (180)/pi*atan2((ycorner2-ycorner),(xcorner2-xcorner))+lonangle;106 angle=mod((180)/pi*atan2((ycorner2-ycorner),(xcorner2-xcorner))+lonangle,360); 107 107 108 108 if (xcorner>xlimits(1) & xcorner<xlimits(2) & ycorner>ylimits(1) & ycorner<ylimits(2)), … … 147 147 xcorner2=x(ind-1); ycorner2=y(ind-1); 148 148 end 149 angle= (180)/pi*atan2((ycorner2-ycorner),(xcorner2-xcorner))+latangle;149 angle=mod((180)/pi*atan2((ycorner2-ycorner),(xcorner2-xcorner))+lonangle,360); 150 150 151 151 if (xcorner>xlimits(1) & xcorner<xlimits(2) & ycorner>ylimits(1) & ycorner<ylimits(2)),
Note:
See TracChangeset
for help on using the changeset viewer.