Changeset 1031 for trunk/src/plot_field.m
- Timestamp:
- Mar 5, 2018, 12:41:34 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r1027 r1031 194 194 195 195 %% 1D plot (usual graph y vs x) 196 if isempty(index_1D) 196 if isempty(index_1D)|| ~isempty(index_2D) 197 197 if ~isempty(haxes) 198 198 plot_profile([],[],haxes);%removes usual praphs y vs x in the absence of 1D field plot … … 653 653 654 654 % loop on the input field cells 655 for icell=1:numel(CellInfo) 655 for icell=1:numel(CellInfo) 656 656 if strcmp(CellInfo{icell}.CoordType,'tps') %do not plot directly tps data (used for projection only) 657 657 continue … … 688 688 if numel(CellInfo{icell}.VarIndex_vector_x)>1 689 689 errormsg='error in plot_field: attempt to plot two vector fields'; 690 return690 return 691 691 end 692 692 test_vec=1; … … 720 720 end 721 721 if ~isempty(ivar_F)%~(isfield(PlotParam.Vectors,'HideWarning')&& isequal(PlotParam.Vectors.HideWarning,1)) 722 % if test_vec 723 vec_F=Data.(Data.ListVarName{ivar_F}); % warning flags for dubious vectors 724 if ~(isfield(PlotParam.Vectors,'CheckHideWarning') && isequal(PlotParam.Vectors.CheckHideWarning,1)) 725 test_black=1; 726 end 727 % end 722 vec_F=Data.(Data.ListVarName{ivar_F}); % warning flags for dubious vectors 723 if ~(isfield(PlotParam.Vectors,'CheckHideWarning') && isequal(PlotParam.Vectors.CheckHideWarning,1)) 724 test_black=1; 725 end 728 726 end 729 727 if ~isempty(ivar_FF_vec) %&& ~test_false 730 % if test_vec% TODO: deal with FF for structured coordinates 731 vec_FF=Data.(Data.ListVarName{ivar_FF_vec}); % flags for false vectors 732 % end 728 vec_FF=Data.(Data.ListVarName{ivar_FF_vec}); % flags for false vectors 733 729 end 734 730 end … … 822 818 y_units=Data.CoordUnit; 823 819 end 824 end 825 end 820 end 821 end 822 826 823 PlotParamOut=PlotParam; % output plot parameters equal to input by default 827 824 … … 1265 1262 PlotParamOut.Axes.y_units=y_units; 1266 1263 end 1267 % if isfield(PlotParam,'Axes') && isfield(PlotParam.Axes,'CheckFixAspectRatio') && isequal(PlotParam.Axes.CheckFixAspectRatio,1)1268 % set(haxes,'DataAspectRatioMode','manual')1269 % if isfield(PlotParam.Axes,'AspectRatio')1270 % set(haxes,'DataAspectRatio',[PlotParam.Axes.AspectRatio 1 1])1271 % end1272 % else1273 % set(haxes,'DataAspectRatioMode','auto')1274 % end1275 1264 1276 1265 %-------------------------------------------------------------------
Note: See TracChangeset
for help on using the changeset viewer.