From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Butz Subject: using gnuplot dumb terminal Date: Tue, 23 Feb 2010 00:38:10 +0100 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Njhqw-0003DQ-To for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 18:38:14 -0500 Received: from [140.186.70.92] (port=52996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Njhqw-0003DH-1X for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 18:38:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Njhqv-0007Cb-Am for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 18:38:13 -0500 Received: from mail-bw0-f219.google.com ([209.85.218.219]:41883) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Njhqv-0007CD-5s for emacs-orgmode@gnu.org; Mon, 22 Feb 2010 18:38:13 -0500 Received: by bwz19 with SMTP id 19so2287439bwz.26 for ; Mon, 22 Feb 2010 15:38:10 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi all, thanks for this extremely versatile emacs mode. I am only beginning to discover all the features available. When using the org-plot/gnuplot interface, a possible use-case came to my mind. In gnuplot one can have a primitive ascii dump of the plot, using set terminal dump with or without an output file. I was wondering if it would be possible to include the output of this as plot into an org document. I can achieve basically this, by having something like #+PLOT: set:"term dumb" file:"plot.plt" | a | b | c | |-----+-----+-----| | 200 | 100 | 300 | | 200 | 200 | 400 | #+TBLFM: $3=$1+$2 and then simply input 'plot.plt' into the document which looks something like this in this case (don't know if the ascii art will survive) 400 ++------------+-------------+------------+-------------+---------$$$$$ + + + + $$$$$a$****** + | $$$$$$$$$$ b ###### | 350 ++ $$$$$$$$$$ c $$$$$$++ | $$$$$$$$$$ | | $$$$$$$$$$ | | $$$$$$$$$$ | 300 $$$$$ ++ | | | | 250 ++ ++ | | | | 200 ********************************************************************** | ########## | | ########## | | ########## | 150 ++ ########## ++ | ########## | + ########## + + + + 100 #####---------+-------------+------------+-------------+------------++ 0 0.2 0.4 0.6 0.8 1 More complicated things would then of course be to link the plot to the table, and to be able to issue update commands if the table data have changed etc. Also when exporting to latex, one could simply change the mode of gnuplot to eps/jpg and include the graphics in the exported document. I have not found the 'dumb' mode mentioned anywhere in the forum, so I was curious if anybody possibly thought about something like this (or has done it already??), or had ideas on how to implement it (don't know lisp myself, unfortunately). Should this not be possible it is not really a problem, since there is a way to do this as described above, but I found this a possibly nice feature, as it would allow for simple plots while keeping the org document to be overhead-free ascii. Cheers and thanks, Erik