<div dir="ltr">Dear Scilab users,<div><br></div><div>in my application I use plot and custom X axes ticks labes (timestamps). Aplication has to run for at least  24hours, but after few hours Windows terminates Scilab due to low memory. We noticed that chenging plot X labels causes memory allocation which results Scilab termination by OS. </div><div><br></div><div>Here is a example code: </div><div><div>x = 0:0.1:100;</div><div>y = sin(x);</div><div>plot(x,y);</div><div>plot_handle = gca();</div><div><br></div><div>while 1</div><div>    ticks = plot_handle.x_ticks</div><div>    cur_time = round(clock());</div><div>    ticks.labels = [ticks.labels(2:max(size(ticks.locations)));..</div><div>                    string(cur_time(4)) + ":" +.. // hour</div><div>                    string(cur_time(5)) + ":" +.. // minute</div><div>                    string(cur_time(6))];         // second</div><div>                    </div><div>    plot_handle.x_ticks = ticks;</div><div>    sleep(50);</div><div>end</div></div><div><br></div><div>What can cause such intensive memory allocation? Is there any workaround for this problem ?  </div><div><img src="cid:ii_156c667c34ba3ded" alt="Obraz w treści 1" width="388" height="233"><img src="cid:ii_156c667c239eba95" alt="Obraz w treści 2" width="386" height="353"><br></div></div>