|
From: Nigel N. <nn...@gm...> - 2009-02-03 20:54:24
|
On 2/3/09, Ethan A Merritt <merritt@u.washington.edu> wrote:
> I haven't tried this new driver yet, but if I understood the earlier
> description correctly, it probably suffers from exactly the same
> problem as wxt on Mac. The event loop is in a thread,
> and OSX does not like that. But we'll see.
Sorry for not getting around to submitting our wx alternative.
By building gnuplot as a library and exposing two functions,
int init_gnuplot(int bInteract);
int lib_do_line(const char *gp_cmd);
we can plug gnuplot into any application. If we just want ps or
pdf results, we pass lines to gnuplot by calling lib_do_line(...);
lib_do_line("set term post");
lib_do_line("set grid");
lib_do_line("plot 'results.dat' with lines");
A current project uses a wxPanel as a rendering canvas, and a
modified wxTextBox for a gui command line. Essentially HBB's
win.trm adjusted for wx. Simple, robust, and no threads.
Nigel
|