Navigation

Operators and Keywords

Function List:

C++ API

hold.m File Reference


Functions

function hold (varargin) if(nargin > 0 &&numel(varargin
 elseif (nargin > 0 &&numel(varargin{1}) > 1 &&ishandle(varargin{1})) print_usage()
endif if (nargs==0) turn_hold_off
 elseif (nargs==1) state
 if (ischar(state)) if(strcmpi(state
 elseif (strcmpi(state,"on")) turn_hold_off
else error ("hold: invalid hold state")
endif endif else print_usage ()
endif if (turn_hold_off) set(ax
else set (ax,"nextplot","add")
 set (fig,"nextplot","add")
 !imshow (A)%!hold on%!plot(X
o!hold off!demo!clf!hold on !imagesc (1./hilb(4))
 !plot (1:4,"-s")%!hold off%!demo%!clf%!hold on%!imagesc(1./hilb(2))
!hold off!demo!clf !colormap (jet)%!t
 !contourf (x, y, z, 10)
 !hold ("on")
 !plot (vec(x), vec(y),"^")
 !patch ([-1.0 1.0 1.0-1.0-1.0],[-1.0-1.0 1.0 1.0-1.0],"red")
 !xlim ([-2.0 2.0])
 !ylim ([-2.0 2.0])
 !colorbar ("SouthOutside")
 !title ("Test script for some plot functions")

Variables

 varargin
 nargs = __plt_get_axis_arg__ ("hold", varargin{:})
else ax = gca ()
 fig = gcf ()
off turn_hold_off = true
endif nextplot
endif replace
endif endfunction!demo!clf !A = rand (100)
 Y
 !z = meshgrid (t, t) peaks (x, y)

Function Documentation

!colorbar ( "SouthOutside"   ) 

! hold off !demo ! clf !colormap ( jet   ) 

!contourf ( ,
,
,
10   
)

!hold ( "on"   ) 

o ! hold off !demo ! clf ! hold on !imagesc ( 1./  hilb4  ) 

Type Constraints

!imshow (  ) 

!patch ( "red"   ) 

!plot ( vec(x)  ,
vec(y)  ,
"^"   
)

!plot ( 1:4  ,
"-s"   
)

!title ( "Test script for some plot functions"   ) 

!xlim (  ) 

!ylim (  ) 

elseif ( strcmpi(state,"on")   ) 

elseif ( nargs  = =1  ) 

elseif ( nargin  ,
0 &&  numelvarargin{1},
1 &&  ishandlevarargin{1} 
)

else error ( "hold: invalid hold state  ) 

function hold ( varargin   ) 

endif if ( turn_hold_off   ) 

if ( ischar(state  ) 

endif if ( nargs  = =0  ) 

endif endif else print_usage (  ) 

set ( fig  ,
"nextplot"  ,
"add"   
)

else set ( ax  ,
"nextplot"  ,
"add"   
)


Variable Documentation

endif endfunction !demo ! clf !A = rand (100)

!z = meshgrid (t, t) peaks (x, y)

else ax = gca ()

fig = gcf ()

nargs = __plt_get_axis_arg__ ("hold", varargin{:})

varargin

Y