bug-apl
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Another toy to play with...


From: Chris Moller
Subject: Another toy to play with...
Date: Sun, 5 Jul 2020 15:59:27 -0400
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.9.0

... or maybe a polished-up version of an old toy:  aplplot, which I wrote several years ago.

Aplplot uses the plplot package to produce plots in a number of formats:  standard x-y, polar, and 3D projection at the moment, and more can be added later.  It can put the plot on your screen or dump it to file in a variety of formats.  If you're using aplwrap, it can embed the plot in the aplwrap window.

Originally, the plot options were set by a string left argument containing keywords and values:

'bgwhite;xcol 1; tlabel "Lissajous axis 1"' plot ⍉2 128⍴(1○2×(⍳128)÷6),2○(⍳128)÷6

That hasn't been precisely ideal so version 2.0 has a menu interface, which makes it a lot easier to use:

'menu' plot ⍉2 128⍴(1○2×(⍳128)÷6),2○(⍳128)÷6

brings up a GTK-based menu that lets you set all the various parameters.

(The string i/f is still there, which can be handy for doing things like:
apl --LX "'libaplplot.so' ⎕FX 'plot'" --eval "' file sine.png; tlabel Sine' plot 2○(⍳128)÷6"
which will create a PNG file showing a bit of sine curve.)

Anyway, it's at:
https://github.com/ChrisMoller/aplplot
if anyone wants to play with it.  There's a bit of a description in the README and some examples at:
https://github.com/ChrisMoller/aplplot/wiki

Have fun,
Chris

reply via email to

[Prev in Thread] Current Thread [Next in Thread]