Changeset 538


Ignore:
Timestamp:
Sep 3, 2012, 11:53:30 PM (12 years ago)
Author:
sommeria
Message:

bug corrected in get_field to get multiple curves in 1D mode

Location:
trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/get_field.m

    r537 r538  
    892892        set(hh.Coord_x,'String',{get_field_GUI.Panel1Dplot.abscissa})
    893893        set(hh.Coord_y,'String',get_field_GUI.Panel1Dplot.ordinate)
     894        set(hh.Coord_y,'Max', numel(get_field_GUI.Panel1Dplot.ordinate))
    894895        set(hh.Coord_y,'Value',1:numel(get_field_GUI.Panel1Dplot.ordinate))
    895896        set(hfield,'Value',1)
  • trunk/src/read_field.m

    r534 r538  
    8484            Role{numel(ListVar)}='ancillary';% scalar used for color vector (not projected)
    8585        end
    86         [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x ParamIn.Coord_y ListVar]);
     86        [Field,var_detect,ichoice]=nc2struct(FileName,[ParamIn.Coord_x (ParamIn.Coord_y)' ListVar]);
    8787        if isfield(Field,'Txt')
    8888            errormsg=Field.Txt;
Note: See TracChangeset for help on using the changeset viewer.