Changeset 781 for trunk/src/plot_field.m
- Timestamp:
- May 29, 2014, 6:17:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/plot_field.m
r760 r781 97 97 %AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA 98 98 99 function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam ,PosColorbar)99 function [PlotType,PlotParamOut,haxes]= plot_field(Data,haxes,PlotParam) 100 100 101 101 %% default input and output … … 180 180 %% 2D plots 181 181 if isempty(index_2D) 182 plot_plane([],[],haxes,[] ,[]);%removes images or vector plots in the absence of 2D field plot182 plot_plane([],[],haxes,[]);%removes images or vector plots in the absence of 2D field plot 183 183 else %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); 186 186 AxeData.NbDim=2; 187 187 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); 189 189 AxeData.ZoomAxes=zoomaxes; 190 190 end … … 573 573 574 574 %------------------------------------------------------------------- 575 function [haxes,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo,haxes,PlotParam ,PosColorbar)575 function [haxes,PlotParamOut,PlotType,errormsg]=plot_plane(Data,CellInfo,haxes,PlotParam) 576 576 %------------------------------------------------------------------- 577 577 PlotType='plane'; … … 589 589 590 590 hfig=get(haxes,'parent');%handle of the figure containing the plot axes 591 PosColorbar=[]; 592 FigData=get(hfig,'UserData'); 593 if isfield(FigData,'PosColorbar') 594 PosColorbar=FigData.PosColorbar; 595 end 591 596 hcol=findobj(hfig,'Tag','Colorbar'); %look for colorbar axes 592 597 hima=findobj(haxes,'Tag','ima');% search existing image in the current axes
Note: See TracChangeset
for help on using the changeset viewer.