Ignore:
Timestamp:
Jun 4, 2018, 8:00:50 PM (6 years ago)
Author:
sommeria
Message:

bugs corrected in plot profiles

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r1045 r1048  
    410410%loop on input  fields
    411411for icell=1:numel(CellInfo)
    412     VarIndex=CellInfo{icell}.YIndex;%  indices of the selected variables in the list data.ListVarName
     412    VarIndex=[CellInfo{icell}.YIndex CellInfo{icell}.YIndex_discrete];%  indices of the selected variables in the list data.ListVarName
    413413    coord_x_index=CellInfo{icell}.XIndex;
    414414    coord_x_name{icell}=data.ListVarName{coord_x_index};
     
    442442            end
    443443        end
    444         if isfield(CellInfo{icell},'VarIndex_discrete')
     444        if isfield(CellInfo{icell},'YIndex_discrete')&& ~isempty(CellInfo{icell}.YIndex_discrete)
    445445            charplot_0='''+''';
    446446        else
Note: See TracChangeset for help on using the changeset viewer.