From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alan Schmitt Subject: Plotting (with gnuplot) using dates timestamps Date: Mon, 26 Mar 2012 15:37:53 +0200 Message-ID: Mime-Version: 1.0 (Apple Message framework v1257) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([208.118.235.92]:34068) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCA7P-0005ur-Qp for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 09:38:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SCA7O-0000fj-0d for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 09:37:55 -0400 Received: from mail4-relais-sop.national.inria.fr ([192.134.164.105]:34836) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SCA7N-0000ew-Pz for emacs-orgmode@gnu.org; Mon, 26 Mar 2012 09:37:53 -0400 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 Mode Hello, I'm trying to plot the following table, but the dates part is all wrong. = Is there a way to tell gnuplot what the date format is? #+tblname: data-table | Date | HP | HC | |------------------+--------+--------| | [2011-08-20 Sat] | 006815 | 008399 | | [2011-08-29 Mon] | 006840 | 008438 | | [2011-09-11 Sun] | 006946 | 008552 | | [2011-12-11 Sun] | 007805 | 009603 | | [2012-03-04 Sun] | 008800 | 010826 | | [2012-03-11 Sun] | 008876 | 010930 | | [2012-03-25 Sun] | 009015 | 011121 | #+begin_src gnuplot :var data=3Ddata-table reset set title "Consommation =C9lectrique" set size ratio square set xlabel "Date" set yrange [6800:9100] set ylabel "HP" set ytics nomirror set y2range [8000:12000] set y2label "HC" set y2tics nomirror set style data points plot data using 1:2 axis x1y1 title 'HP', \ data using 1:3 axis x1y2 title 'HC' #+end_src Thanks, Alan=