emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] Plotting with gnuplot


From: Ian Barton
Subject: Re: [O] Plotting with gnuplot
Date: Wed, 29 Jul 2015 10:50:02 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]