Subject: plot2d failed to plot too many discrete points
From: XeCycle
Date: Mon, 14 May 2012 10:23:47 +0800
Raymond Toy <toy.raymond at gmail.com> writes:
[...]
> Please provide more information on exactly what "failed to plot" means.
> On the other hand:
>
> (%i41) zz:makelist(k,k,0,100000)$
> (%i42) plot2d([discrete,zz,zz]);
>
> produces a nice straight line for me (current git, cmucl, osx).
Sorry for not enough info.
I generated some sequence similar to an oscillating signal, in
bfloat; haven't change fpprec though. Then FFT it, take the real
part and try to plot it. It failed, said control stack
exhausted. I executed that in Emacs SLIME, if this is relevant
to stack size please tell me.
P.S. Your example failed for me too. I ran `maxima' from command
line, version being the one in Arch Linux repo. Error message:
--8<---------------cut here---------------start------------->8---
INFO: Control stack guard page unprotected
Control stack guard page temporarily disabled: proceed with caution
Maxima encountered a Lisp error:
Control stack exhausted (no more space for function call frames).
This is probably due to heavily nested or infinitely recursive function
calls, or a tail call that SBCL cannot or has not optimized away.
--8<---------------cut here---------------end--------------->8---
[...]
> Maxima already does that. (Well, the default is to pipe the data to
> gnuplot.) You could just save the data to a file and see if gnuplot
> will plot them. That would at least give way more information on
> whether it's gnuplot or maxima.
I know the process, but a stack overflow is not likely to bring
up a lisp debugger for me.
--
Carl Lei (XeCycle)
Department of Physics, Shanghai Jiao Tong University
OpenPGP public key: 7795E591
Fingerprint: 1FB6 7F1F D45D F681 C845 27F7 8D71 8EC4 7795 E591
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://www.math.utexas.edu/pipermail/maxima/attachments/20120514/15ff7ca8/attachment-0001.pgp>