Ignore:
Timestamp:
Sep 7, 2018, 8:51:09 PM (6 years ago)
Author:
sommeria
Message:

merge_proj_polar updated + other corrected bugs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/find_field_cells.m

    r1057 r1058  
    1717%              _image   : B/W image, (behaves like scalar)
    1818%              _vector_x,_y,_z: indices of variables giving the vector components x, y, z
    19 %              _warnflag: index of warnflag   
     19%              _warnflag: index of warnflag
     20%              _histo: index of variable used as histogram
    2021%       .DimIndex
    2122%      .ProjModeRequest= 'interp_lin', 'interp_tps' indicate whether lin interpolation  or derivatives (tps) is needed to calculate the requested field
     
    118119end
    119120ind_discrete=find(strcmp('discrete',Role));
    120 ind_coord_x=find(strcmp('coord_x',Role));
     121ind_coord_x=[find(strcmp('coord_x',Role)) find(strcmp('histo',Role))];
    121122ind_coord_y=find(strcmp('coord_y',Role));
    122123ind_coord_z=find(strcmp('coord_z',Role));
     124ind_histo=find(strcmp('histo',Role));
    123125ind_coord_tps=find(strcmp('coord_tps',Role));
    124126check_string=cellfun(@ischar,Data.VarDimName)==1;
     
    477479        Cell1DPlot{icell}.YIndex_discrete=[];
    478480        DimCell_x=Data.VarDimName{ind_coord_x(icell)};
    479         for ivar=ind_coord_y
     481        for ivar=[ind_coord_y ind_histo]
    480482            DimCell=Data.VarDimName{ivar};
    481483            if  numel(DimCell_x)==1 && strcmp(DimCell_x{1},DimCell{1})
Note: See TracChangeset for help on using the changeset viewer.