Doubt about plotting on MAC OS X Catalina
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
Re: Doubt about plotting on MAC OS X Catalina
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
Re: Doubt about plotting on MAC OS X Catalina
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