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

bug corrected in plot_field

File:
1 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 
Note: See TracChangeset for help on using the changeset viewer.