cl-ana
cl-ana copied to clipboard
How to control cl-ana.table-viewing gnuplot behavior?
I am unfamiliar with gnuplot. I was able to get plots by specifying the :file
keyword in the cl-ana.plotting
package, but the cl-ana.table-viewing
package doesn't allow users to pass this through. So:
- Does gnuplot somehow display graphs from within the terminal? I am running these commands from within SLIME from withing graphical emacs. Without an output file, I simply get back a
T
, so I think something is happening, but I'm unsure what. - Do we want the
table-viewing
package to pass throughplotting
keywords? This seems like a high amount of coupling. Instead, perhaps we could pass in a closure in which is responsible for the plotting, and takes a limited set of arguments. This way, the caller may create the closure in the stack-frame above, utilizing all theplotting
arguments they need, and then pass it intotable-viewing
functions. This keepstable-viewing
andplotting
decoupled, but still working together.
Ah this is actually due to me not completing the table-viewing package. The way I've typically handled drawing options is by allowing three arguments "page-options", "plot-options", and "line-options" or something along those lines so there is detailed control over plotting.
As far as coupling goes, I think it is acceptable because the idea of table-viewing is to allow easy drawing of information from tables.