Hi,
thanks, the LENGTH ERROR was incorrect and was fixed in SVN
1205 (yesterday).
The background of the recent changes in ⎕PLOT was this:
Plotting a matrix means that every row of the matrix represents
one plot line (and
a vector is handled like a 1-row matrix. This works fine if all
plot lines have the same
number of plot points (= matrix columns).
Sometimes, however, you want to plot lines whose numbers of plot
points differ. In
the past you would have to replicate some of the plot points in
the shorter plot lines,
but that resulted in ugly APL code. I therefore added the
possibility to specify the plot
points as a nested vector of plot lines instead of a matrix of
plot points.
Best Regards,
Jürgen Sauermann
On 11/27/19 5:46 AM, Christian Robert
via Bugs and suggestions for GNU APL wrote:
And
note that ⎕PLOT plot matrix, not vector as in:
⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
LENGTH ERROR
⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
^
⎕PLOT 1 7 ⍴ 0 1 ¯1 2 ¯2 3 ¯3
139625030256384 ⍝ <- X11 handle to possibly close later
I'm not sure if the behavior changed lately... me too I though I
could plot a vector some time ago but I may be mistaken.
Xtian.
On 2019-11-26 11:27, Dr. Jürgen Sauermann wrote:
Hi Toni,
the *+* character after *SYNTAX ERROR* (or any other APL error)
indicates that there
is more information available regarding that error. The
additional information
can be displayed with command *)MORE*.
I suspect that in this particular case libraries needed for
plotting (essentially libX11.so,
libxcb.so, and libX11-xcb.so) were missing on the platform where
GNU APL was compiled
(i.e. your own machine if you compiled from source or the build
machine of a package if
you installed a binary package).
For *⎕PLOT *to work, you may need to compile the interpreter
from source with the required
X libraries installed beforehand.
Best Regards,
Jürgen Sauermann
On 11/26/19 2:27 PM, Antonio Juan wrote:
Thanks for this awesome software. I have
installed gnu plot 1.8 from brew package. It works well, and
good integration with emacs. So it is a good environment for
learning APL.
The only think is that when I try to plot I always get the
following error:
⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
SYNTAX ERROR+
⎕PLOT 0 1 ¯1 2 ¯2 3 ¯3
^
I do not see anywhere, if is needed to load a workspace, or
the needed for some environment configuration during
installation. So really I do not know how to proceed.
Thanks for your time
Toni
|