From mboxrd@z Thu Jan 1 00:00:00 1970 From: Thomas S. Dye Subject: Re: Plotting with gnuplot Date: Tue, 21 Jul 2015 15:02:05 -1000 Message-ID: References: <6ge28cxntv.ln2@news.c0t0d0s0.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44193) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZHiQM-0000xW-6R for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 21:02:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZHiQJ-0005CI-GS for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 21:02:18 -0400 Received: from gproxy4-pub.mail.unifiedlayer.com ([69.89.23.142]:59098) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1ZHiQJ-0005C9-8t for emacs-orgmode@gnu.org; Tue, 21 Jul 2015 21:02:15 -0400 In-reply-to: <6ge28cxntv.ln2@news.c0t0d0s0.de> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Michael Welle Cc: emacs-orgmode@gnu.org Aloha Michael, Does the :session header argument help? All the best, Tom Michael Welle writes: > Hello, > > I have several sections in my org files that plot data with gnuplot. The > structure usually looks like that: > > #+tblname: foo > | d | y | > |------------------+------| > | [2015-01-03 Sat] | 2014 | > | [2013-12-31 Tue] | 2013 | > #+begin_src gnuplot :var data=foo :file img/foo.png > set terminal png > set xlabel foo > ... > plot data using 1:2 with boxes title '' > #+end_src > > > The problem is that the gnuplot scripts are evaluated in the same > gnuplot instance. If I set, for instance, xlabel in one gnuplot script > it is still set in the next script. That is quite annoying. I tried to > end the scripts with a quit statement, but that results in a 'current > buffer has no process' error. A reset statement at the beginning of the > script makes the situation better, but isn't a solution. Any ideas? > > Regards > hmw -- Thomas S. Dye http://www.tsdye.com