Hi Mathieu,<div><br></div><div>Yes I think you are right. So I think I need to improve the way that data is read because simply changing the <span class="Apple-style-span" style="font-family: arial, sans-serif; font-size: 13px; border-collapse: collapse; ">stacksize won't solve the problem fundamentally.</span></div>
<meta http-equiv="content-type" content="text/html; charset=utf-8"><div><br></div><div>And talking about matrix, is the effect of using a 16*n matrix the same with using 16 1*n arrays? How can I change my program so it requires smaller stacksize and probably runs faster?<br>
<br></div><div>Thanks.</div><div><br></div><div>Peng</div><div><br><div class="gmail_quote">On 24 October 2010 20:58, Mathieu Dubois <span dir="ltr"><<a href="mailto:mathieu.dubois@limsi.fr">mathieu.dubois@limsi.fr</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Peng<br>
<br>
Le 24/10/2010 21:12, Peng Du a écrit :<div><div></div><div class="h5"><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi everyone.<br>
<br>
I have a question about how to plot efficiently.<br>
<br>
My scilab program reads data from a file containing 16 columns. Each<br>
column represents the data for a polyline. So what I have been doing so<br>
far is to build 16 separate arrays and plot them in one graph. However<br>
as the size of the file grows, sometimes up to several GBs, it started<br>
to take a very long time to finish and finally I got the error message<br>
of exceeded stack size. Does anyone know how I can work around this?<br>
</blockquote></div></div>
I don't think that problem comes from plot but rather from your data reading function.<br>
<br>
To increase the stack size, you can use stacksize (see help("stacksize")).<br>
<br>
By the way if you call plot2d with a matrix it will plot a polyline for each column on the same graph.<br>
<br>
HTH,<br><font color="#888888">
Mathieu<br>
</font></blockquote></div><br></div>