Changeset 102 for trunk/src/plot_field.m
- Timestamp:
- Jun 13, 2010, 11:32:05 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r99 r102 229 229 230 230 231 set(haxes,'UserData',AxeData) 231 %set(haxes,'UserData',AxeData) 232 set(haxes,'UserData',Data) 232 233 if ~testnewfig 233 234 set(0,'Children',hstack);%put back the initial figure stack after plot creation … … 239 240 function hdisplay=plot_text(FieldData,hdisplay_in) 240 241 %------------------------------------------------------------------- 241 if exist('hdisplay_in','var') && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol') 242 hdisplay_in 243 if exist('hdisplay_in','var') && ~isempty(hdisplay_in) && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol') 242 244 hdisplay=hdisplay_in; 243 245 else … … 965 967 AxeData.FF=vec_FF'; 966 968 end 967 % if isfield(Data,'W')968 % AxeData.W=Data.W;969 % end970 969 971 970 %decimate by a factor 2 in vector mesh(4 in nbre of vectors) … … 995 994 %get main level color code 996 995 [colorlist,col_vec,PlotParamOut.Vectors]=set_col_vec(PlotParam.Vectors,vec_C); 996 997 997 % take flags into account: add flag colors to the list of colors 998 998 sizlist=size(colorlist); … … 1114 1114 set(h,'EraseMode','xor'); 1115 1115 set(haxes,'NextPlot','replacechildren'); 1116 %htext=findobj('Tag','scalevec');1117 1116 1118 1117 %drawnow … … 1163 1162 hy = [y1;y2;y3]; 1164 1163 tri=reshape([1:3*length(uc)],3,[])'; 1165 d = tri(:,[1 2 3 1])'; 1166 1164 d = tri(:,[1 2 3 1])'; 1167 1165 1168 1166 isn=isnan(colorlist(icolor,:));%test if color NaN
Note: See TracChangeset
for help on using the changeset viewer.