Mercurial > octave-nkf
comparison doc/interpreter/plot.txi @ 9316:c539ec5726e7
Update some of Advanced Plotting documentation.
Updated functions delete, allchild, backend, clf, hold, and refreshdata.
author | Rik <rdrider0-list@yahoo.com> |
---|---|
date | Sun, 07 Jun 2009 20:12:16 -0700 |
parents | 923c7cb7f13f |
children | 43a07df0ed4c |
comparison
equal
deleted
inserted
replaced
9315:73e36b147e45 | 9316:c539ec5726e7 |
---|---|
536 A figure window. | 536 A figure window. |
537 | 537 |
538 @item axes | 538 @item axes |
539 @cindex axes graphics object | 539 @cindex axes graphics object |
540 @cindex graphics object, axes | 540 @cindex graphics object, axes |
541 An set of axes. This object is a child of a figure object and may be a | 541 A set of axes. This object is a child of a figure object and may be a |
542 parent of line, text, image, patch, or surface objects. | 542 parent of line, text, image, patch, or surface objects. |
543 | 543 |
544 @item line | 544 @item line |
545 @cindex line graphics object | 545 @cindex line graphics object |
546 @cindex graphics object, line | 546 @cindex graphics object, line |
565 @cindex surface graphics object | 565 @cindex surface graphics object |
566 @cindex graphics object, surface | 566 @cindex graphics object, surface |
567 A three-dimensional surface. | 567 A three-dimensional surface. |
568 @end table | 568 @end table |
569 | 569 |
570 To determine whether an object is a graphics object index or a figure | 570 To determine whether a variable is a graphics object index or a figure |
571 index, use the functions @code{ishandle} and @code{isfigure}. | 571 index, use the functions @code{ishandle} and @code{isfigure}. |
572 | 572 |
573 @DOCSTRING(ishandle) | 573 @DOCSTRING(ishandle) |
574 | 574 |
575 @DOCSTRING(ishghandle) | 575 @DOCSTRING(ishghandle) |
591 @example | 591 @example |
592 @group | 592 @group |
593 get (0) | 593 get (0) |
594 @result{} ans = | 594 @result{} ans = |
595 @{ | 595 @{ |
596 type = root figure | 596 type = root |
597 currentfigure = [](0x0) | 597 currentfigure = [](0x0) |
598 children = [](0x0) | 598 children = [](0x0) |
599 visible = on | 599 visible = on |
600 @dots{} | |
600 @} | 601 @} |
601 @end group | 602 @end group |
602 @end example | 603 @end example |
603 | 604 |
604 @noindent | 605 @noindent |
671 @code{drawnow} function. | 672 @code{drawnow} function. |
672 | 673 |
673 @DOCSTRING(drawnow) | 674 @DOCSTRING(drawnow) |
674 | 675 |
675 Only figures that are modified will be updated. The @code{refresh} | 676 Only figures that are modified will be updated. The @code{refresh} |
676 function can also be to force an update of the current figure, even if | 677 function can also be used to force an update of the current figure, even if |
677 it is nor modified. | 678 it is not modified. |
678 | 679 |
679 @DOCSTRING(refresh) | 680 @DOCSTRING(refresh) |
680 | 681 |
681 Normally, high-level plot functions like @code{plot} or @code{mesh} call | 682 Normally, high-level plot functions like @code{plot} or @code{mesh} call |
682 @code{newplot} to initialize the state of the current axes so that the | 683 @code{newplot} to initialize the state of the current axes so that the |
683 next plot is drawn in a blank window with default property settings. To | 684 next plot is drawn in a blank window with default property settings. To |
684 have two plots superimposed over one another, call the @code{hold} | 685 have two plots superimposed over one another, use the @code{hold} |
685 function. For example, | 686 function. For example, |
686 | 687 |
687 @example | 688 @example |
688 @group | 689 @group |
689 hold ("on"); | 690 hold on; |
690 x = -10:0.1:10; | 691 x = -10:0.1:10; |
691 plot (x, sin (x)); | 692 plot (x, sin (x)); |
692 plot (x, cos (x)); | 693 plot (x, cos (x)); |
693 hold ("off"); | 694 hold off; |
694 @end group | 695 @end group |
695 @end example | 696 @end example |
696 | 697 |
697 @noindent | 698 @noindent |
698 displays sine and cosine waves on the same axes. If the hold state is | 699 displays sine and cosine waves on the same axes. If the hold state is |