From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Barton Subject: Re: Plotting with gnuplot Date: Wed, 29 Jul 2015 10:50:02 +0100 Message-ID: <20150729095002.GB13213@localhost> References: <6ge28cxntv.ln2@news.c0t0d0s0.de> <58n38cx51a.ln2@news.c0t0d0s0.de> <67f68cxgrc.ln2@news.c0t0d0s0.de> Reply-To: lists@wilkesley.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:33757) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKO0B-0003hV-6P for emacs-orgmode@gnu.org; Wed, 29 Jul 2015 05:50:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZKO07-0005gy-LH for emacs-orgmode@gnu.org; Wed, 29 Jul 2015 05:50:19 -0400 Received: from mail2.wilkesley.net ([176.58.110.121]:35248 helo=li40-130.members.linode.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZKO07-0005NO-8G for emacs-orgmode@gnu.org; Wed, 29 Jul 2015 05:50:15 -0400 Received: from localhost (unknown [46.33.134.31]) (Authenticated sender: ian@wilkesley.net) by li40-130.members.linode.com (Postfix) with ESMTPSA id 13340BE3A4 for ; Wed, 29 Jul 2015 09:50:07 +0000 (UTC) Content-Disposition: inline In-Reply-To: <67f68cxgrc.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: emacs-orgmode@gnu.org On Thu, Jul 23, 2015 at 08:46:30AM +0200, Michael Welle wrote: > > With two code blocks, use :session foo for one and :session bar for the > > other. Does your problem persist? > yepp, that was the idea. But no success. > If I understand the problem correctly, you need to put reset as the first argument: #+begin_src gnuplot :var data2015=days_cycling[2:-5] :var data2014=days_cycling[3:-4] :var data2013=days_cycling[4:-4,] :var data2012=days_cycling[5:-4,] :file ../images/number_of_days_cycling.png reset set title 'Number of Days Cycling Each Month.' # set ylabel 'Days' set xlabel 'Speed Mbps' lw2 set style data histogram set style histogram cluster gap 1 set style fill solid border -1 set boxwidth 0.9 set xlabel 'Month' set ylabel 'Days' plot data2015 u 5:xticlabels(1) title "2015", data2014 u 4:xticlabels(1) title "2014", data2014 u 3:xticlabels(1) title "2013", data2014 u 2:xticlabels(1) title "2012" #+end_src I have holes in my foor from using that particular gun. -- Best wishes, Ian.