Changeset 760
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r749 r760 167 167 set(haxes,'YLimMode', 'auto') 168 168 end 169 170 if isfield(PlotParamOut.Axes,'CheckFixAspectRatio') && isequal(PlotParamOut.Axes.CheckFixAspectRatio,1)&&isfield(PlotParamOut.Axes,'AspectRatio') 171 set(haxes,'DataAspectRatioMode','manual') 172 set(haxes,'DataAspectRatio',[PlotParamOut.Axes.AspectRatio 1 1]) 173 else 174 set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio 175 end 176 169 177 errormsg=''; 170 178 AxeData=get(haxes,'UserData'); … … 201 209 end 202 210 211 %% aspect ratio 212 AspectRatio=get(haxes,'DataAspectRatio'); 213 PlotParamOut.Axes.AspectRatio=AspectRatio(1)/AspectRatio(2); 214 203 215 %% text display 204 205 216 htext=findobj(hfig,'Tag','TableDisplay'); 206 217 hchecktable=findobj(hfig,'Tag','CheckTable'); … … 552 563 553 564 %% determine plot aspect ratio 554 if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio')555 set(haxes,'DataAspectRatioMode','manual')556 set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1])557 else558 set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio559 AspectRatio=get(haxes,'DataAspectRatio');560 CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2);561 end565 % if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio') 566 % set(haxes,'DataAspectRatioMode','manual') 567 % set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1]) 568 % else 569 % set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio 570 % AspectRatio=get(haxes,'DataAspectRatio'); 571 % CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2); 572 % end 562 573 563 574 %------------------------------------------------------------------- … … 1210 1221 PlotParamOut.Axes.y_units=y_units; 1211 1222 end 1212 if isfield(PlotParam,'Axes') && isfield(PlotParam.Axes,'CheckFixAspectRatio') && isequal(PlotParam.Axes.CheckFixAspectRatio,1) 1213 set(haxes,'DataAspectRatioMode','manual') 1214 if isfield(PlotParam.Axes,'AspectRatio') 1215 set(haxes,'DataAspectRatio',[PlotParam.Axes.AspectRatio 1 1]) 1216 end 1217 else 1218 set(haxes,'DataAspectRatioMode','auto') 1219 end 1223 % if isfield(PlotParam,'Axes') && isfield(PlotParam.Axes,'CheckFixAspectRatio') && isequal(PlotParam.Axes.CheckFixAspectRatio,1) 1224 % set(haxes,'DataAspectRatioMode','manual') 1225 % if isfield(PlotParam.Axes,'AspectRatio') 1226 % set(haxes,'DataAspectRatio',[PlotParam.Axes.AspectRatio 1 1]) 1227 % end 1228 % else 1229 % set(haxes,'DataAspectRatioMode','auto') 1230 % end 1231 1220 1232 %------------------------------------------------------------------- 1221 1233 % --- function for plotting vectors -
trunk/src/series.m
r757 r760 1050 1050 end 1051 1051 end 1052 FieldName_Callback([], [], handles) 1053 % FileName=fullfile_uvmat(InputTable{iview,1},InputTable{iview,2},InputTable{iview,3},InputTable{iview,5},InputTable{iview,4},i1_series(1,ref_j+1,ref_i+1),i2,j1,j2); 1054 % hget_field=get_field(FileName); 1055 % hhget_field=guidata(hget_field); 1056 % get_field('RUN_Callback',hhget_field.RUN,[],hhget_field); 1052 % FieldName_Callback([], [], handles) 1057 1053 otherwise 1058 1054 set(handles.FieldName,'Value',1) % set menu to 'image' -
trunk/src/uvmat.m
r752 r760 4016 4016 %------------------------------------------------------------------- 4017 4017 set(handles.CheckFixVectors,'Value',1); 4018 set(handles.CheckFixVectors,'BackgroundColor',[1 1 0])4018 %set(handles.CheckFixVectors,'BackgroundColor',[1 1 0]) 4019 4019 update_plot(handles); 4020 4020 … … 4600 4600 Data_uvmat=get(handles.uvmat,'UserData'); 4601 4601 evalin('base','global Data_uvmat')%make CurData global in the workspace 4602 disp lay('current field :')4603 evalin('base','Data_uvmat ') %display CurData in the workspace4602 disp('Data_uvmat.Field=') 4603 evalin('base','Data_uvmat.Field') %display CurData in the workspace 4604 4604 commandwindow; %brings the Matlab command window to the front 4605 4605
Note: See TracChangeset
for help on using the changeset viewer.