Ignore:
Timestamp:
Mar 12, 2025, 12:35:15 PM (2 days ago)
Author:
sommeria
Message:

background image introduced for civ1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r1175 r1176  
    183183else  %plot 2D field
    184184%     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);
    186186    AxeData.NbDim=2;
    187187    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);
    189189        AxeData.ZoomAxes=zoomaxes;
    190190    end
     
    409409
    410410%% 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(';
     411if 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
    415422end
    416423xtitle='';
Note: See TracChangeset for help on using the changeset viewer.