[Scilab-users] Display problem

Tim Wescott tim at wescottdesign.com
Wed Apr 22 18:04:01 CEST 2015


On Wed, 2015-04-22 at 06:07 +0000, SCHULZ Wolfgang wrote:
> Hello,
> I would like to display 10e6 points but it seems that Scilab (5.2.2 x64 on Win7) works only till 8e6 points.
> 
> I tried increasing the Java Heap memory (and restarted Scilab afterwards) but there was no effect.
> 
> Here is a test program what works till 8e6 but doesn't work for 9e6.
> 
> stacksize('max')
> Maximum=8e6
> dt=1/Maximum;
> t=0:dt:1;
> y=sin(2*%pi*50*t);
> plot(t,y);
> 
> Any idea what could be wrong?

While you're waiting to get the bug fixed, have you pondered the
impossibility of displaying X values in Y spaces when X >> Y?  Unless
you've got something astonishing, your display has, at most, only a few
thousand pixels across, so there's no way you can display 10e6 points
anyway.  The same holds for any normal page-sized sheet and printer
(although I suppose you could manage this with a 300mm silicon blank and
some state-of-the-art lithography).

If your function is continuous, then doing

plot(t(1:100:$), y(1:100:$))

will give you a pretty close approximation, and still use way more
points than your display can handle.  If you're looking for glitches
then you'll have to do something fancier (and more challenging as far as
memory usage).

-- 

Tim Wescott
www.wescottdesign.com
Control & Communications systems, circuit & software design.
Phone: 503.631.7815
Cell:  503.349.8432




More information about the users mailing list