From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Eric Schulte" Subject: Re: [OT] what about asymptote ? Date: Sun, 13 Jun 2010 09:31:35 -0700 Message-ID: <87typ6dhco.fsf@gmail.com> References: <87pqzvtfkt.wl%n.goaziou@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=48279 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1ONq60-0006gj-Md for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 12:31:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1ONq5z-0004ga-FZ for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 12:31:40 -0400 Received: from mail-px0-f169.google.com ([209.85.212.169]:62617) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1ONq5z-0004gS-93 for emacs-orgmode@gnu.org; Sun, 13 Jun 2010 12:31:39 -0400 Received: by pxi1 with SMTP id 1so4549932pxi.0 for ; Sun, 13 Jun 2010 09:31:38 -0700 (PDT) In-Reply-To: <87pqzvtfkt.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Sun, 13 Jun 2010 12:03:14 +0200") 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: Nicolas Goaziou Cc: org-mode mailing list Hi Nicolas, I agree asymptote does generate beautiful figures (does it use the same pgf backend as tikz)? However my most common graphical need is to display data read in from an external file or from the command line, which I believe is orthogonal to the main asymptote functionality. Best -- Eric Nicolas Goaziou writes: > Hello, > > While I'm at it, I'd like to suggest asymptote as a neat tool to draw > all those graphs. > > Here are two examples illustrating it (admittedly not so well for the > surface, but I explain why in my comments) : > > #+begin_src asymptote > import graph3; > size(7cm,0); > > currentprojection=orthographic(-4,-2,3); > > // define function f(z), where z ( z.x , z.y ) > real f(pair z) { return sin(z.x) + sin(z.y); } > > // Drawing meshes (pen for surface is nullpen) > draw(surface(f,(-4,-4),(4,4),nx=30),nullpen,meshpen=red,nolight); > > // Dumb axis but my asymptote version is too old for something > // more complex > xaxis3(); > yaxis3(); > zaxis3(); > #+end_src > > #+begin_src asymptote :file graph-asy-polar.pdf > import graph; > size(7cm,0); > > // defining function and its graph > real f(real t) {return sqrt(2)/2-cos(3t);} > path Cf=polargraph(f,0,2pi,n=1440,operator ..)--cycle; > > // drawing graph > draw(Cf,.8bp+red); > > // axis and units > xaxis("$x$"); > yaxis("$y$"); > draw((0,0)--(1,0),.8bp+blue,Arrow()); > draw((0,0)--(0,1),.8bp+blue,Arrow()); > #+end_src > > -- > Nicolas > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode