Changeset 781 for trunk/src/plot_field.m


Ignore:
Timestamp:
May 29, 2014, 6:17:00 PM (10 years ago)
Author:
sommeria
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/plot_field.m

    r760 r781  
    9797%AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    9898
    99 function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam,PosColorbar)
     99function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam)
    100100
    101101%% default input and output
     
    180180%% 2D plots
    181181if isempty(index_2D)
    182     plot_plane([],[],haxes,[],[]);%removes images or vector plots in the absence of 2D field plot
     182    plot_plane([],[],haxes,[]);%removes images or vector plots in the absence of 2D field plot
    183183else  %plot 2D field
    184     if ~exist('PosColorbar','var'),PosColorbar=[];end;
    185     [tild,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo(index_2D),haxes,PlotParamOut,PosColorbar);
     184%     if ~exist('PosColorbar','var'),PosColorbar=[];end;
     185    [tild,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo(index_2D),haxes,PlotParamOut);
    186186    AxeData.NbDim=2;
    187187    if testzoomaxes && isempty(errormsg)
    188         [zoomaxes,PlotParamOut,tild,errormsg]=plot_plane(Data,CellInfo(index_2D),zoomaxes,PlotParamOut,PosColorbar);
     188        [zoomaxes,PlotParamOut,tild,errormsg]=plot_plane(Data,CellInfo(index_2D),zoomaxes,PlotParamOut);
    189189        AxeData.ZoomAxes=zoomaxes;
    190190    end
     
    573573
    574574%-------------------------------------------------------------------
    575 function [haxes,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo,haxes,PlotParam,PosColorbar)
     575function [haxes,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo,haxes,PlotParam)
    576576%-------------------------------------------------------------------
    577577PlotType='plane';
     
    589589
    590590hfig=get(haxes,'parent');%handle of the figure containing the plot axes
     591PosColorbar=[];
     592FigData=get(hfig,'UserData');
     593if isfield(FigData,'PosColorbar')
     594    PosColorbar=FigData.PosColorbar;
     595end
    591596hcol=findobj(hfig,'Tag','Colorbar'); %look for colorbar axes
    592597hima=findobj(haxes,'Tag','ima');% search existing image in the current axes
Note: See TracChangeset for help on using the changeset viewer.