emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Eric Schulte" <schulte.eric@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: org-mode mailing list <emacs-orgmode@gnu.org>
Subject: Re: [OT] what about asymptote ?
Date: Sun, 13 Jun 2010 09:31:35 -0700	[thread overview]
Message-ID: <87typ6dhco.fsf@gmail.com> (raw)
In-Reply-To: <87pqzvtfkt.wl%n.goaziou@gmail.com> (Nicolas Goaziou's message of "Sun, 13 Jun 2010 12:03:14 +0200")

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 <n.goaziou@gmail.com> 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

  reply	other threads:[~2010-06-13 16:31 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           ` [OT] what about asymptote ? Nicolas Goaziou
2010-06-13 16:31             ` Eric Schulte [this message]
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=87typ6dhco.fsf@gmail.com \
    --to=schulte.eric@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@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).