[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Orgmode] [OT] what about asymptote ?
From: |
Nicolas Goaziou |
Subject: |
[Orgmode] [OT] what about asymptote ? |
Date: |
Sun, 13 Jun 2010 12:03:14 +0200 |
User-agent: |
SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (Gojō) APEL/10.7 Emacs/23.2 (x86_64-unknown-linux-gnu) MULE/6.0 (HANACHIRUSATO) |
<address@hidden>
<address@hidden>
<address@hidden>
<address@hidden>
<address@hidden>
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
- [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), (continued)
- [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), Eric S Fraga, 2010/06/12
- Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), Eric S Fraga, 2010/06/12
- Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), John Hendy, 2010/06/18
- [Orgmode] Re: [OT] gnuplot quality, Eric Schulte, 2010/06/18
- Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), Nick Dokos, 2010/06/18
- Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), John Hendy, 2010/06/18
- Re: [OT] gnuplot quality (was Re: [Orgmode] org-plot file export options), John Hendy, 2010/06/12
- [Orgmode] Re: [OT] gnuplot quality, Eric Schulte, 2010/06/12
- [Orgmode] Re: [OT] gnuplot quality, Eric S Fraga, 2010/06/12
- Re: [Orgmode] Re: [OT] gnuplot quality, Alan E. Davis, 2010/06/12
- [Orgmode] [OT] what about asymptote ?,
Nicolas Goaziou <=
- Re: [Orgmode] [OT] what about asymptote ?, Eric Schulte, 2010/06/13
- Re: [Orgmode] [OT] what about asymptote ?, Nicolas Goaziou, 2010/06/13
- [babel] Re: [Orgmode] Re: [OT] gnuplot quality, Eric S Fraga, 2010/06/15
- Re: [babel] Re: [Orgmode] Re: [OT] gnuplot quality, Eric Schulte, 2010/06/15
- [Orgmode] Re: [babel] Re: Re: [OT] gnuplot quality, Štěpán Němec, 2010/06/16
- Re: [babel] Re: [Orgmode] Re: [OT] gnuplot quality, Alan E. Davis, 2010/06/16