From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [OT] gnuplot quality Date: Sat, 12 Jun 2010 08:23:44 -0700 Message-ID: <87631o8ebj.fsf@gmail.com> References: <87eigde28n.fsf@gmail.com> <87d3vw8shu.wl%ucecesf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=49248 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONSYp-0000OH-8J for emacs-orgmode@gnu.org; Sat, 12 Jun 2010 11:23:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONSYn-0003zf-R5 for emacs-orgmode@gnu.org; Sat, 12 Jun 2010 11:23:51 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:61755) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONSYn-0003zQ-Mc for emacs-orgmode@gnu.org; Sat, 12 Jun 2010 11:23:49 -0400 Received: by pxi1 with SMTP id 1so2909968pxi.0 for ; Sat, 12 Jun 2010 08:23:48 -0700 (PDT) In-Reply-To: <87d3vw8shu.wl%ucecesf@ucl.ac.uk> (Eric S. Fraga's message of "Sat, 12 Jun 2010 11:17:33 +0100") 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: Eric S Fraga Cc: emacs-orgmode Eric S Fraga writes: > On Fri, 11 Jun 2010 13:35:52 -0700, "Eric Schulte" wrote: > > [...] > >> WRT: the ugliness of gnuplot to file, I've wrestled with this myself and >> I know exactly what you mean. Currently I try to use svg or png images >> when exporting to html, and for pdf I use the gnuplot tikz terminal [2]. > > John & Eric, > > Another approach, which I use and which doesn't require using the > development version of gnuplot for the tikz support, is to generate > encapsulated postscript files: > > set terminal postscript eps enhanced 20 > set output "graph.eps" > Thanks! I just tried the above (well technically the below [1]) and it does look great and scales well. It's nice to have a light-weight alternative to tikz -- a great addition to my plotting toolbox. Best -- Eric > > for instance. Then, if I need bitmap images, I use "convert" from > ImageMagick to create these from the EPS files with the required > density (depending on intended use, whether screen display or > printing), as in > > convert -density 300 graph.eps graph.png > > With EPS, you can get very nice looking text, especially with the > "enhanced" gnuplot set terminal option and the result is size > independent. Footnotes: [1] --8<---------------cut here---------------start------------->8--- #+begin_src gnuplot set terminal postscript eps enhanced 20 color set output "~/Desktop/graph.eps" set isosample 30,30 set title 'bumpy' set xrange[-4:4] set yrange[-4:4] splot sin(x) + sin(y) notitle #+end_src --8<---------------cut here---------------end--------------->8---