Changeset 313 for trunk/src/plot_field.m


Ignore:
Timestamp:
Dec 1, 2011, 12:44:42 PM (9 years ago)
Author:
sommeria
Message:

bug reapirs in view of vector colors and grid in civ

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r294 r313  
    524524        else
    525525            test_vec=1;
    526             eval(['vec_U=Data.' Data.ListVarName{ivar_U} ';'])
    527             eval(['vec_V=Data.' Data.ListVarName{ivar_V} ';'])
     526            vec_U=Data.(Data.ListVarName{ivar_U});
     527            vec_V=Data.(Data.ListVarName{ivar_V});
    528528            if ~isempty(ivar_X) && ~isempty(ivar_Y)% 2D field (with unstructured coordinates or structured ones (then ivar_X and ivar_Y empty)
    529529                XName=Data.ListVarName{ivar_X};
     
    552552            if ~isempty(ivar_F)%~(isfield(PlotParam.Vectors,'HideWarning')&& isequal(PlotParam.Vectors.HideWarning,1))
    553553                if test_vec
    554                     eval(['vec_F=Data.' Data.ListVarName{ivar_F} ';']) % warning flags for  dubious vectors
     554                    vec_F=Data.(Data.ListVarName{ivar_F}); % warning flags for  dubious vectors
    555555                    if  ~(isfield(PlotParam.Vectors,'CheckHideWarning') && isequal(PlotParam.Vectors.CheckHideWarning,1))
    556556                        test_black=1;
     
    560560            if ~isempty(ivar_FF) %&& ~test_false
    561561                if test_vec% TODO: deal with FF for structured coordinates
    562                     eval(['vec_FF=Data.' Data.ListVarName{ivar_FF} ';']) % flags for false vectors
     562                    vec_FF=Data.(Data.ListVarName{ivar_FF}); % flags for false vectors
    563563                end
    564564            end
Note: See TracChangeset for help on using the changeset viewer.