Changeset 61 for trunk/src/plot_field.m


Ignore:
Timestamp:
Mar 24, 2010, 12:51:51 AM (11 years ago)
Author:
sommeria
Message:

gestion of projection objects improved. Implementation of view_field.fig
introduction of a circle to mark vectors with the mouse
various cleaning and debugging

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r55 r61  
    121121    if ishandle(haxes)
    122122        if isequal(get(haxes,'Type'),'axes')
    123 %             hfig=get(haxes,'Parent');
    124123            axes(haxes)
    125124            testnewfig=0;
     
    204203    msgbox_uvmat('ERROR','volume plot not implemented yet')
    205204    return
    206     %plot_volume(haxes,Data,PlotParam)% A FAIRE
    207     %PlotType='volume';
    208205else
    209206    testnbdim=0;
     
    309306function [AxeData,haxes]=plot_profile(data,CellVarIndex,VarType,haxes,PlotParam)
    310307%-----------------------------------------------------------
    311 axes(haxes)
     308%axes(haxes)
    312309hfig=get(haxes,'parent');
    313310AxeData=data;
     
    316313if isfield(PlotParam,'NextPlot')
    317314    set(haxes,'NextPlot',PlotParam.NextPlot)
     315end
     316% adjust the size of the plot to include the whole field, except if KeepLim=1
     317if isfield(PlotParam,'FixedLimits') && isequal(PlotParam.FixedLimits,1)  %adjust the graph limits*
     318    set(haxes,'XLimMode', 'manual')
     319    set(haxes,'YLimMode', 'manual')
     320else
     321    set(haxes,'XLimMode', 'auto')
     322    set(haxes,'YLimMode', 'auto')
    318323end
    319324legend_str={};
     
    372377          charplot_0='''-''';
    373378    end
    374 %     if testcoordvar==0
    375 %         coord_x{icell}=[1:data.DimValue(DimIndices(1))];%abscissa by default if no coordinate variable
    376 %        % charplot_0='''-''';
    377 %     end
    378379    if isfield(data,'VarAttribute')
    379380        VarAttribute=data.VarAttribute;
     
    415416if ~isequal(plotstr,'plot(')
    416417    plotstr(end)=')';
    417                 %execute plot (instruction  plotstr)
     418                %execute plot (instruction  plotstr)   
    418419    eval(plotstr)
    419420                %%%%%
Note: See TracChangeset for help on using the changeset viewer.