Changeset 1176 for trunk/src/plot_field.m
- Timestamp:
- Mar 12, 2025, 12:35:15 PM (2 days ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r1175 r1176 183 183 else %plot 2D field 184 184 % if ~exist('PosColorbar','var'),PosColorbar=[];end; 185 [ tild,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo(index_2D),haxes,PlotParamOut);185 [~,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo(index_2D),haxes,PlotParamOut); 186 186 AxeData.NbDim=2; 187 187 if testzoomaxes && isempty(errormsg) 188 [zoomaxes,PlotParamOut, tild,errormsg]=plot_plane(Data,CellInfo(index_2D),zoomaxes,PlotParamOut);188 [zoomaxes,PlotParamOut,~,errormsg]=plot_plane(Data,CellInfo(index_2D),zoomaxes,PlotParamOut); 189 189 AxeData.ZoomAxes=zoomaxes; 190 190 end … … 409 409 410 410 %% prepare the string for plot command 411 if isfield(PlotParam,'Type')&& strcmp(PlotParam.Type,'semilogx') 412 plotstr='hhh=semilogx('; 413 else 414 plotstr='hhh=plot('; 411 if isfield(PlotParam,'Type') 412 switch PlotParam.Type 413 case 'semilogx' 414 plotstr='hhh=semilogx('; 415 case 'semilogy' 416 plotstr='hhh=semilogy('; 417 case 'loglog' 418 plotstr='hhh=loglog('; 419 otherwise 420 plotstr='hhh=plot('; 421 end 415 422 end 416 423 xtitle='';
Note: See TracChangeset
for help on using the changeset viewer.