From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Re: Plotting (with gnuplot) using dates timestamps Date: Thu, 29 Mar 2012 18:09:44 -0700 Message-ID: <877gy299nr.fsf@fester.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:44318) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDQLo-0005yJ-GT for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 21:10:01 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SDQLm-0001PK-Jn for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 21:10:00 -0400 Received: from plane.gmane.org ([80.91.229.3]:32769) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SDQLm-0001Np-Dw for emacs-orgmode@gnu.org; Thu, 29 Mar 2012 21:09:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1SDQLh-0000Yr-VE for emacs-orgmode@gnu.org; Fri, 30 Mar 2012 03:09:53 +0200 Received: from c-71-237-233-41.hsd1.or.comcast.net ([71.237.233.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Mar 2012 03:09:53 +0200 Received: from mailinglists by c-71-237-233-41.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 30 Mar 2012 03:09:53 +0200 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 Alan Schmitt writes: > 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 | Although you solved the problem, another solution for headaches like these is simply to preprocess the table in something like Perl/Python (within your org file using Babel) to get the desired string format. Then pass the resulting array/list to gnuplot. The solution you were provided is probably the way to go, but keep this strategy in mind - sometimes it's just not worth the effort to solve everything in one language.