[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: LaTeX codes in plot text (titles, labels, etc.)

From: Jordi Gutierrez Hermoso
Subject: Re: LaTeX codes in plot text (titles, labels, etc.)
Date: Fri, 16 Feb 2007 12:29:06 -0600

On 16/02/07, Ronald Crummett <address@hidden> wrote:
In Matlab you can add special characters (such as Greek variables) to
plots using LaTeX codes - for example if you want the character for pi,
you could type \pi and the character would show up.

I know that something similar exists in Octave if you set gnuplot to an
enhanced mode.  We can get the character for pi by typing {/Symbol p}.

Here's one possible quick and dirty hack: psfrag. Search for it.
Export your plots into postscript, put placeholders for your tags, and
then use psfrag for modifying those placeholders into actual LaTeX.
The end result is rather pretty, especially since then your plots have
fonts that perfectly match your running text. You may then convert the
ps to a pdf with any number of free tools available.

I don't know if this works in proprietary operating systems, but I
imagine it should.

- Jordi G. H.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]