Changeset 789 for trunk


Ignore:
Timestamp:
Jun 29, 2014, 4:12:27 PM (7 years ago)
Author:
sommeria
Message:

read_lvm added (reading Labview data)

Location:
trunk/src
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r782 r789  
    563563
    564564%% determine plot aspect ratio
    565 % if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio')
    566 %     set(haxes,'DataAspectRatioMode','manual')
    567 %     set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1])
    568 % else
    569 %     set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio
    570 %     AspectRatio=get(haxes,'DataAspectRatio');
    571 %     CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2);
    572 % end
     565if isfield(Coordinates,'CheckFixAspectRatio') && isequal(Coordinates.CheckFixAspectRatio,1)&&isfield(Coordinates,'AspectRatio')
     566    set(haxes,'DataAspectRatioMode','manual')
     567    set(haxes,'DataAspectRatio',[Coordinates.AspectRatio 1 1])
     568else
     569    set(haxes,'DataAspectRatioMode','auto')%automatic aspect ratio
     570    AspectRatio=get(haxes,'DataAspectRatio');
     571    CoordinatesOut.AspectRatio=AspectRatio(1)/AspectRatio(2);
     572end
    573573
    574574%-------------------------------------------------------------------
  • trunk/src/uvmat.m

    r784 r789  
    35293529if UvData.Field.NbDim<=1
    35303530    set(handles.Objects,'Visible','off')
    3531     [PlotType,PlotParamOut]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat));
     3531    [PlotType,PlotParamOut,haxes]=plot_field(UvData.Field,handles.PlotAxes,read_GUI(handles.uvmat));
     3532    UvData.PlotAxes=UvData.Field; %store data for further plot modifications
    35323533    errormsg=fill_GUI(PlotParamOut,handles.uvmat);
    35333534    for list={'Scalar','Vectors'}
     
    52215222drawnow
    52225223UvData=get(handles.uvmat,'UserData');
     5224AxeData=[];
     5225if isfield(UvData,'PlotAxes')
    52235226AxeData=UvData.PlotAxes;% retrieve the current plotted data
     5227end
    52245228PlotParam=read_GUI(handles.uvmat);
    52255229[tild,PlotParamOut]= plot_field(AxeData,handles.PlotAxes,PlotParam);
Note: See TracChangeset for help on using the changeset viewer.