Changeset 109 for trunk/src/plot_field.m


Ignore:
Timestamp:
Oct 4, 2010, 10:39:11 PM (14 years ago)
Author:
sommeria
Message:

merge_proj.m, proj_field.m: bugs repaired merging of images
plot_field.m: minor cleaning
imadoc2struct: introduce the possibility of readying the calibration point coordinates
sub_field.m:bugs repaired
geometry_calib, create_grid: introduction of new calibration methods, improvement of detect_grid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r107 r109  
    243243function hdisplay=plot_text(FieldData,hdisplay_in)
    244244%-------------------------------------------------------------------
    245 hdisplay_in
    246245if exist('hdisplay_in','var') && ~isempty(hdisplay_in) && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol')
    247246    hdisplay=hdisplay_in;
     
    687686        end
    688687          x_label=[Data.ListVarName{ivar_X} '(' x_units ')'];
    689     end       
    690 %     if isfield(Data,'VarAttribute')
    691 %         VarAttribute=Data.VarAttribute;
    692 %     end   
     688    end         
    693689end
    694690
     
    704700    siz=numel(np);
    705701    if siz>3
    706         msgbox_uvmat('ERROR','unrecognized scalar type ')
     702        msgbox_uvmat('ERROR',['unrecognized scalar type: ' num2str(siz) ' dimensions'])
    707703            return
    708704    end
     
    794790        if ~isequal(PlotParam.Scalar.Contours,1) 
    795791            % rescale the grey levels with min and max, put a grey scale colorbar
     792            B=A;
    796793            if BW
    797                 B=A;
    798794                vec=linspace(0,1,255);%define a linear greyscale colormap
    799795                map=[vec' vec' vec'];
    800796                colormap(map);  %grey scale color map
    801797            else
    802                 B=A;
    803798                colormap('default'); % standard faulse colors for div, vort , scalar fields
    804799            end
Note: See TracChangeset for help on using the changeset viewer.