<html>
<head>
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
</head>
<body>
<p>Hello Adrian,</p>
<p>Here is what I would do:</p>
<p>(1) use 'tag' property field of your curve together with findobj
to get access to the plot to be updated, without passing the
handle.<br>
(2) instead of deleting the curve and recreating it, I would
directly modify its content (data property) and then ask for a
replot/rescale if needed.</p>
<p>You can have a look at the content of function 'replot()' for a
typical example.<br>
It get called when the user changes the top slider in the GUI or
presses Re-run.<br>
It is far from perfect, but it does something that might look like
what you want.</p>
<p>Hope it helps,</p>
<p>Antoine<br>
</p>
<div class="moz-cite-prefix">On 24/07/2020 19:11, Adrian Weeks
wrote:<br>
</div>
<blockquote type="cite"
cite="mid:DM5PR10MB1675B46FA5E3B324ED7F19EAD5770@DM5PR10MB1675.namprd10.prod.outlook.com">
<meta http-equiv="Content-Type" content="text/html;
charset=windows-1252">
<meta name="Generator" content="Microsoft Word 15 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0cm;
margin-bottom:.0001pt;
font-size:11.0pt;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
span.EmailStyle17
{mso-style-type:personal-compose;
font-family:"Calibri",sans-serif;
color:windowtext;}
.MsoChpDefault
{mso-style-type:export-only;
font-family:"Calibri",sans-serif;
mso-fareast-language:EN-US;}
@page WordSection1
{size:612.0pt 792.0pt;
margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal">Hi All,<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I wonder if anyone could suggest a solution
to this problem?<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I want to:<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> Create a
figure.
This remains fixed. This I can do.<o:p></o:p></p>
<p class="MsoNormal"> Create four axes within the
figure. These
remain fixed. This I can do.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> In each of the four axes
plot two reference curves. These remain
fixed. This I can do.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"> Repeatedly call a function
A<o:p></o:p></p>
<p class="MsoNormal"
style="margin-left:36.0pt;text-indent:36.0pt">which calls an
inner function B<o:p></o:p></p>
<p class="MsoNormal"
style="margin-left:72.0pt;text-indent:36.0pt">which plots a
curve in each of the four axes having deleted the ones it
plotted on the previous call of
A. This I can’t do.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">The idea is that the figure, axes and
reference curves remain in place while the temporary curves
are repeatedly deleted and re-plotted to allow an ‘animation’
showing the progression of the curves.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">I can’t see a way to pass and delete the
handles to the polylines produced by plot2d / gce. I’ve tried
passing as parameters, using global variables, all to no
avail. The most common error is from ‘delete’, complaining
that “The handle is not valid”.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal">Many thanks in anticipation.<o:p></o:p></p>
<p class="MsoNormal"><o:p> </o:p></p>
<table class="MsoNormalTable" style="width:450.0pt" width="600"
cellspacing="0" cellpadding="0" border="0">
<tbody>
<tr>
<td style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt"
width="600">
<p class="MsoNormal" style="margin-bottom:12.0pt"><span
style="mso-fareast-language:EN-GB">Adrian Weeks
<br>
Development Engineer, Hardware Engineering EMEA<br>
Office: +44 (0)2920 528500 | Desk: +44 (0)2920
528523 | Fax: +44 (0)2920 520178<br>
<a href="mailto:aweeks@hidglobal.com"
moz-do-not-send="true"><span style="color:blue">aweeks@hidglobal.com</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt"
width="600">
<p class="MsoNormal"><a href="http://www.hidglobal.com/"
moz-do-not-send="true"><span
style="color:blue;mso-fareast-language:EN-GB;text-decoration:none"><img
style="width:2.4375in;height:.375in"
id="Picture_x0020_1"
src="cid:part2.18BD9666.7A8B93F0@laas.fr"
alt="HID Global Logo" class="" width="234"
height="36" border="0"></span></a><span
style="mso-fareast-language:EN-GB"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="width:450.0pt;padding:1.5pt 1.5pt 1.5pt 1.5pt"
width="600">
<p class="MsoNormal"><span
style="mso-fareast-language:EN-GB">Unit 3, Cae
Gwyrdd,<br>
Green meadow Springs,<br>
Cardiff, UK,<br>
CF15 7AB.<br>
<a href="http://www.hidglobal.com"
moz-do-not-send="true"><span style="color:blue">www.hidglobal.com</span></a><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="mso-fareast-language:EN-GB"><o:p> </o:p></span></p>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<pre class="moz-quote-pre" wrap="">_______________________________________________
users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:users@lists.scilab.org">users@lists.scilab.org</a>
<a class="moz-txt-link-freetext" href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a>
</pre>
</blockquote>
</body>
</html>