Changeset 109 for trunk/src/plot_field.m
- Timestamp:
- Oct 4, 2010, 10:39:11 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r107 r109 243 243 function hdisplay=plot_text(FieldData,hdisplay_in) 244 244 %------------------------------------------------------------------- 245 hdisplay_in246 245 if exist('hdisplay_in','var') && ~isempty(hdisplay_in) && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol') 247 246 hdisplay=hdisplay_in; … … 687 686 end 688 687 x_label=[Data.ListVarName{ivar_X} '(' x_units ')']; 689 end 690 % if isfield(Data,'VarAttribute') 691 % VarAttribute=Data.VarAttribute; 692 % end 688 end 693 689 end 694 690 … … 704 700 siz=numel(np); 705 701 if siz>3 706 msgbox_uvmat('ERROR', 'unrecognized scalar type ')702 msgbox_uvmat('ERROR',['unrecognized scalar type: ' num2str(siz) ' dimensions']) 707 703 return 708 704 end … … 794 790 if ~isequal(PlotParam.Scalar.Contours,1) 795 791 % rescale the grey levels with min and max, put a grey scale colorbar 792 B=A; 796 793 if BW 797 B=A;798 794 vec=linspace(0,1,255);%define a linear greyscale colormap 799 795 map=[vec' vec' vec']; 800 796 colormap(map); %grey scale color map 801 797 else 802 B=A;803 798 colormap('default'); % standard faulse colors for div, vort , scalar fields 804 799 end
Note: See TracChangeset
for help on using the changeset viewer.