On Mon, Apr 4, 2016 at 8:04 PM, Luís Oliveira <luismbo@gmail.com> wrote:
On Mon, Apr 4, 2016 at 10:28 PM, Mirko Vukovic <mirko.vukovic@gmail.com> wrote:
> But in the org-mode, after successfully creating the first plot, the
> subsequent ones raise the error that the stream is private to a thread.  So
> I have to restart GNUplot for each plot.

I'm guessing you're using Clozure CL.
Correct :-) 
If you pass :sharing :external
or :sharing :lock (whichever is more appropriate) to ccl:run-program
then the stream won't be thread-private.

I'll give it a try 


HTH,

--
Luís Oliveira
http://kerno.org/~luis/