From: Nicolas Goaziou <n.goaziou@gmail.com>
To: "Alan E. Davis" <lngndvs@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: [OT] what about asymptote ?
Date: Sun, 13 Jun 2010 12:03:14 +0200 [thread overview]
Message-ID: <87pqzvtfkt.wl%n.goaziou@gmail.com> (raw)
In-Reply-To: <AANLkTikoyClhdvuiSB11vYMRCEivO9hX3n3rDRsowdS9@mail.gmail.com>
<87eigde28n.fsf@gmail.com>
<87d3vw8shu.wl%ucecesf@ucl.ac.uk>
<87631o8ebj.fsf@gmail.com>
<87wru4uhux.wl%ucecesf@ucl.ac.uk>
<AANLkTikoyClhdvuiSB11vYMRCEivO9hX3n3rDRsowdS9@mail.gmail.com>
User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/23.2 Mule/6.0 (HANACHIRUSATO)
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
next prev parent reply other threads:[~2010-06-13 10:03 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-11 20:12 org-plot file export options John Hendy
2010-06-11 20:35 ` Eric Schulte
2010-06-12 10:17 ` [OT] gnuplot quality (was Re: org-plot file export options) Eric S Fraga
2010-06-12 10:24 ` Eric S Fraga
2010-06-18 20:43 ` John Hendy
2010-06-18 21:00 ` [OT] gnuplot quality Eric Schulte
2010-06-18 21:13 ` [OT] gnuplot quality (was Re: org-plot file export options) Nick Dokos
2010-06-18 22:04 ` John Hendy
2010-06-12 15:18 ` John Hendy
2010-06-12 15:23 ` [OT] gnuplot quality Eric Schulte
2010-06-12 20:16 ` Eric S Fraga
2010-06-13 2:35 ` Alan E. Davis
2010-06-13 10:03 ` Nicolas Goaziou [this message]
2010-06-13 16:31 ` [OT] what about asymptote ? Eric Schulte
2010-06-13 17:48 ` Nicolas Goaziou
2010-06-15 13:35 ` [babel] Re: Re: [OT] gnuplot quality Eric S Fraga
2010-06-15 15:30 ` Eric Schulte
2010-06-16 10:27 ` Štěpán Němec
2010-06-17 3:07 ` Alan E. Davis
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87pqzvtfkt.wl%n.goaziou@gmail.com \
--to=n.goaziou@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=lngndvs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).