Changeset 102 for trunk/src/plot_field.m


Ignore:
Timestamp:
Jun 13, 2010, 11:32:05 PM (14 years ago)
Author:
sommeria
Message:

bugs corrected for projection objects

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r99 r102  
    229229
    230230
    231 set(haxes,'UserData',AxeData)
     231%set(haxes,'UserData',AxeData)
     232set(haxes,'UserData',Data)
    232233if ~testnewfig
    233234set(0,'Children',hstack);%put back the initial figure stack after plot creation
     
    239240function hdisplay=plot_text(FieldData,hdisplay_in)
    240241%-------------------------------------------------------------------
    241 if exist('hdisplay_in','var') && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol')
     242hdisplay_in
     243if exist('hdisplay_in','var') && ~isempty(hdisplay_in) && ishandle(hdisplay_in) && isequal(get(hdisplay_in,'Type'),'uicontrol')
    242244    hdisplay=hdisplay_in;
    243245else
     
    965967        AxeData.FF=vec_FF';
    966968    end
    967 %     if isfield(Data,'W')
    968 %         AxeData.W=Data.W;
    969 %     end
    970969   
    971970    %decimate by a factor 2 in vector mesh(4 in nbre of vectors)
     
    995994    %get main level color code
    996995    [colorlist,col_vec,PlotParamOut.Vectors]=set_col_vec(PlotParam.Vectors,vec_C);
     996   
    997997    % take flags into account: add flag colors to the list of colors
    998998    sizlist=size(colorlist);
     
    11141114set(h,'EraseMode','xor');
    11151115set(haxes,'NextPlot','replacechildren');
    1116 %htext=findobj('Tag','scalevec');
    11171116     
    11181117%drawnow
     
    11631162      hy = [y1;y2;y3];
    11641163    tri=reshape([1:3*length(uc)],3,[])';
    1165     d = tri(:,[1 2 3 1])';
    1166  
     1164    d = tri(:,[1 2 3 1])';
    11671165   
    11681166    isn=isnan(colorlist(icolor,:));%test if color NaN
Note: See TracChangeset for help on using the changeset viewer.