Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Writing mathematics on graphs


From   "Michael S. Hanson" <mshanson@mac.com>
To   statalist@hsphsun2.harvard.edu
Subject   Re: st: Writing mathematics on graphs
Date   Thu, 15 Sep 2005 18:11:42 -0400

On Sep 15, 2005, at 3:02 PM, Claus Dethlefsen / Aalborg Sygehus wrote:

Is there a way to add formatted text on plots (in the title, x-axis label or y-axis label) such as

m^2 (with superscript 2)
x_i (with subscript i)

\frac{kg \cdot m}{s^2} (a fraction and some extra formatting)

Or is the easiest way to do a plot without labels and then add them using an external program?

It's a shame that one cannot easily embed LaTeX code into Stata output as one can with, say, Matlab, but I suspect it would require a substantial modification to Stata to do so. Here is one possible solution that should work; it is, however, platform-specific: <http://www.esm.psu.edu/mac-tex/WFTPDF/>. HTH.

-- Mike


*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/




© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index