Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > b38d2da330d1936e5ab1307c039c4941 > files > 201

octave-doc-3.6.4-3.mga4.noarch.rpm

<html lang="en">
<head>
<title>Data Sources in Object Groups - GNU Octave</title>
<meta http-equiv="Content-Type" content="text/html">
<meta name="description" content="GNU Octave">
<meta name="generator" content="makeinfo 4.13">
<link title="Top" rel="start" href="index.html#Top">
<link rel="up" href="Object-Groups.html#Object-Groups" title="Object Groups">
<link rel="next" href="Area-Series.html#Area-Series" title="Area Series">
<link href="http://www.gnu.org/software/texinfo/" rel="generator-home" title="Texinfo Homepage">
<meta http-equiv="Content-Style-Type" content="text/css">
<style type="text/css"><!--
  pre.display { font-family:inherit }
  pre.format  { font-family:inherit }
  pre.smalldisplay { font-family:inherit; font-size:smaller }
  pre.smallformat  { font-family:inherit; font-size:smaller }
  pre.smallexample { font-size:smaller }
  pre.smalllisp    { font-size:smaller }
  span.sc    { font-variant:small-caps }
  span.roman { font-family:serif; font-weight:normal; } 
  span.sansserif { font-family:sans-serif; font-weight:normal; } 
--></style>
</head>
<body>
<div class="node">
<a name="Data-Sources-in-Object-Groups"></a>
<p>
Next:&nbsp;<a rel="next" accesskey="n" href="Area-Series.html#Area-Series">Area Series</a>,
Up:&nbsp;<a rel="up" accesskey="u" href="Object-Groups.html#Object-Groups">Object Groups</a>
<hr>
</div>

<h5 class="subsubsection">15.4.6.1 Data Sources in Object Groups</h5>

<p><a name="index-data-sources-in-object-groups-1567"></a><a name="doc_002ddatasources"></a>All of the group objects contain data source parameters.  There are
string parameters that contain an expression that is evaluated to update
the relevant data property of the group when the <code>refreshdata</code>
function is called.

<!-- refreshdata scripts/plot/refreshdata.m -->
   <p><a name="doc_002drefreshdata"></a>

<div class="defun">
&mdash; Function File:  <b>refreshdata</b> ()<var><a name="index-refreshdata-1568"></a></var><br>
&mdash; Function File:  <b>refreshdata</b> (<var>h</var>)<var><a name="index-refreshdata-1569"></a></var><br>
&mdash; Function File:  <b>refreshdata</b> (<var>h, workspace</var>)<var><a name="index-refreshdata-1570"></a></var><br>
<blockquote><p>Evaluate any &lsquo;<samp><span class="samp">datasource</span></samp>&rsquo; properties of the current figure and update
the plot if the corresponding data has changed.  If called with one or more
arguments <var>h</var> is a scalar or array of figure handles to refresh.  The
optional second argument <var>workspace</var> can take the following values.

          <dl>
<dt>"base"<dd>Evaluate the datasource properties in the base workspace.  (default).

          <br><dt>"caller"<dd>Evaluate the datasource properties in the workspace of the function
that called <code>refreshdata</code>. 
</dl>

        <p>An example of the use of <code>refreshdata</code> is:

     <pre class="example">          x = 0:0.1:10;
          y = sin (x);
          plot (x, y, "ydatasource", "y");
          for i = 1 : 100
            pause (0.1);
            y = sin (x + 0.1*i);
            refreshdata ();
          endfor
</pre>
        </blockquote></div>

   <p><a name="doc_002dlinkdata"></a><!-- add the description of the linkdata function here when it is written -->
<!-- remove the explicit anchor when you add the corresponding @DOCSTRING -->
<!-- command -->

   </body></html>