On 11/1/07, Jaime Villate <villate at fe.up.pt> wrote:
> defstruct looks better than using an array, but even with it, there are
> several plot options which are really flags and are not used most of the
> time. For instance logx, logy, gnuplot_out_file, etc.
> How about using simple variables such as:
> $gnuplot_out_file: "mygraph"$
Well, I'd rather avoid making still more global variables ...
Another possibility is to define a plotting namespace (via the
Lisp package system) and make the plot options global variables
in that namespace. Then the user could refer to them as, say,
plotting`logx or plotting`output_file. (Assuming the namespace
resolution operator is backtick; could be something else.)
I made some progress on a namespace system but it is kind of
clumsy. Maybe it's time to revisit that.
best
Robert