comparison scripts/plot/refreshdata.m @ 11975:5183cee7a423 release-3-2-x

Update some of Advanced Plotting documentation. Updated functions delete, allchild, backend, clf, hold, and refreshdata.
author Rik <rdrider0-list@yahoo.com>
date Tue, 09 Jun 2009 06:33:10 +0200
parents 16f53d29049f
children 59967776ed4a
comparison
equal deleted inserted replaced
11974:28d4a6acbf0a 11975:5183cee7a423
15 ## You should have received a copy of the GNU General Public License 15 ## You should have received a copy of the GNU General Public License
16 ## along with Octave; see the file COPYING. If not, see 16 ## along with Octave; see the file COPYING. If not, see
17 ## <http://www.gnu.org/licenses/>. 17 ## <http://www.gnu.org/licenses/>.
18 18
19 ## -*- texinfo -*- 19 ## -*- texinfo -*-
20 ## @deftypefn {Function File} {} refreshdata () 20 ## @deftypefn {Function File} {} refreshdata ()
21 ## @deftypefnx {Function File} {} refreshdata (@var{h}) 21 ## @deftypefnx {Function File} {} refreshdata (@var{h})
22 ## @deftypefnx {Function File} {} refreshdata (@var{h}, @var{ws}) 22 ## @deftypefnx {Function File} {} refreshdata (@var{h}, @var{workspace})
23 ## Evaluates any datasource properties of the current figure and updates 23 ## Evaluate any @samp{datasource} properties of the current figure and update
24 ## the corresponding data. If call with one or more arguments @var{h} is 24 ## the plot if the corresponding data has changed. If called with one or more
25 ## a scalar or array of figure handles which to refresh. The data 25 ## arguments @var{h} is a scalar or array of figure handles to refresh. The
26 ## sources are by default evaluated in the "base" workspace but can also 26 ## optional second argument @var{workspace} can take the following values.
27 ## be set in the "caller" workspace.
28 ## 27 ##
29 ## An example of the use of refreshdata is 28 ## @table @code
29 ## @item "base"
30 ## Evaluate the datasource properties in the base workspace. (default).
31 ## @item "caller"
32 ## Evaluate the datasource properties in the workspace of the function
33 ## that called @code{refreshdata}.
34 ## @end table
35 ##
36 ## An example of the use of @code{refreshdata} is:
30 ## 37 ##
31 ## @example 38 ## @example
32 ## @group 39 ## @group
33 ## x = 0:0.1:10; 40 ## x = 0:0.1:10;
34 ## y = sin (x); 41 ## y = sin (x);
38 ## y = sin (x + 0.1 * i); 45 ## y = sin (x + 0.1 * i);
39 ## refreshdata(); 46 ## refreshdata();
40 ## endfor 47 ## endfor
41 ## @end group 48 ## @end group
42 ## @end example 49 ## @end example
43 ##
44 ## @seealso{linkdata}
45 ## @end deftypefn 50 ## @end deftypefn
46 51
47 function refreshdata (h, ws) 52 function refreshdata (h, ws)
48 53
49 if (nargin == 0) 54 if (nargin == 0)