Changeset 872 for trunk/src/plot_field.m
- Timestamp:
- Feb 16, 2015, 3:31:22 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r871 r872 202 202 end 203 203 PlotParamOut.Axes=plot_profile(Data,CellInfo(index_1D),haxes,PlotParamOut.Axes,CheckHold);% 204 if isfield(PlotParamOut,'Vectors') 205 PlotParamOut=rmfield(PlotParamOut,'Vectors'); 206 end 207 if isfield(PlotParamOut,'Scalar') 208 PlotParamOut=rmfield(PlotParamOut,'Scalar'); 209 end 204 if isempty(index_2D) 205 if isfield(PlotParamOut,'Vectors') 206 PlotParamOut=rmfield(PlotParamOut,'Vectors'); 207 end 208 if isfield(PlotParamOut,'Scalar') 209 PlotParamOut=rmfield(PlotParamOut,'Scalar'); 210 end 211 end 210 212 if testzoomaxes 211 213 [zoomaxes,PlotParamOut.Axes]=plot_profile(Data,CellInfo(index_1D),zoomaxes,PlotParamOut.Axes,CheckHold); … … 572 574 %% give statistics for pdf 573 575 ind_var=find(testplot); 574 if numel(ind_var)==1 && isfield(data,'VarAttribute') && isfield(data.VarAttribute{ind_var},'Role')&&...575 strcmp(data.VarAttribute{ind_var}.Role,'histo')576 if numel(ind_var)==1 && isfield(data,'VarAttribute') &&numel(data.VarAttribute)>=ind_var &&... 577 isfield(data.VarAttribute{ind_var},'Role') && strcmp(data.VarAttribute{ind_var}.Role,'histo') 576 578 pdf_val=data.(data.ListVarName{ind_var}); 577 579 x=coord_x{1};
Note: See TracChangeset
for help on using the changeset viewer.