|
From: Nigel N. <nn...@gm...> - 2008-10-14 12:21:15
|
Hi Petr,
> Gnuplot is not library with an API; instead, you use the gnuplot commands
> and pass them through a pipe - for this, a console app is needed.
A gnuplot session might boil down to this:
while (!com_line) {
readline();
do_line();
}
Our old wx translation drove gnuplot directly, using wx to handle user
strings and history. For realtime display of sim results, we assemble
gp_input_line programmatically. So, with no pipe and no readline, a
plotting session becomes a sequence of calls to gnuplot's minimalist
API:
do_line();
In this sense, we use gnuplot as a high-powered plotting library.
The issue of global variables may still be an... issue?
Nigel
|