home *** CD-ROM | disk | FTP | other *** search
/ Liren Large Software Subsidy 10 / 10.iso / l / l460 / 2.ddi / GRAPHICS.DI$ / ISHOLD.M < prev    next >
Encoding:
Text File  |  1993-03-07  |  540 b   |  16 lines

  1. function holdstate = ishold()
  2. %ISHOLD    Return 1 if hold is on.
  3. %    ISHOLD returns 1 if hold is on, and 0 if it is off.
  4. %    When HOLD is ON, the current plot and all axis properties
  5. %    are held so that subsequent graphing commands add to the 
  6. %    existing graph.
  7. %
  8. %    Hold on means the NextPlot property of both figure
  9. %    and axes is set to "add".
  10. %
  11. %    See also HOLD, NEWPLOT, FIGURE, AXES.
  12.  
  13. %    Copyright (c) 1984-93 by The MathWorks, Inc.
  14.  
  15. holdstate = strcmp(lower(get(gca,'NextPlot')),'add') & strcmp(lower(get(gcf,'NextPlot')),'add');
  16.