Changeset 1133


Ignore:
Timestamp:
Apr 15, 2024, 8:19:57 PM (2 weeks ago)
Author:
sommeria
Message:

bug corrected in plot_field

Location:
trunk/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r1131 r1133  
    855855    if siz==3
    856856        if np(3)==1
    857             siz=2;%B W image
     857            siz=2;%grey scale image
    858858        elseif np(3)==3
    859859            siz=3;%color image
     
    865865   
    866866    %set for grey scale setting
    867     ColorMap='default';
     867    ColorMap='default';%default colormap
    868868    if isfield(PlotParam.Scalar,'CheckBW') && ~isempty(PlotParam.Scalar.CheckBW)
    869869        ColorMap=PlotParam.Scalar.CheckBW; %BW=0 color imposed, else gray scale imposed.
     
    996996                    A=uint8(255*double(A)/double(MaxA));
    997997                end
     998            otherwise
     999                colormap(ColorMap);
    9981000        end
    9991001 
  • trunk/src/series.m

    r1132 r1133  
    10771077%% determine the min and max times: case of Netcdf files will be treated later in FieldName_Callback
    10781078if ~isempty(TimeName)
     1079    if size(Time)<[MaxIndex_i+1 MaxIndex_j+1]
     1080       msgbox_uvmat('WARNING',['incomplete time info in ' XmlFileName]);
     1081    end
    10791082    TimeMin=Time(MinIndex_i+1,MinIndex_j+1);
    10801083    if size(Time)>=[first_i+1 first_j+1]
     
    21532156                        'source /etc/profile\n'...
    21542157                        'module purge\n'...
    2155                         'module load matlab/' matlab_version '\n'...% CHOICE OF MATLAB VERSION
    2156                         'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB\n'...
     2158                        'module load matlab/' matlab_version '\n'...% CHOICE OF CURRENT MATLAB VERSION
     2159                        'matlab -nodisplay -nosplash -nojvm -singleCompThread -logfile ''' filelog{iprocess} ''' <<END_MATLAB\n'...% open a new Matlab session without display
    21572160                        'addpath(''' path_series ''');\n'...
    21582161                        'addpath(''' Param.Action.ActionPath ''');\n'...
    2159                         '' Param.Action.ActionName  '(''' filexml{iprocess} ''');\n'...
     2162                        '' Param.Action.ActionName  '(''' filexml{iprocess} ''');\n'...% launch the Matlab function selected by the GUI 'series'
    21602163                        'exit\n'...
    21612164                        'END_MATLAB\n'];
Note: See TracChangeset for help on using the changeset viewer.