... 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