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

st: RE: Formatting macro output in Graphs

From   "Nick Cox" <>
To   <>
Subject   st: RE: Formatting macro output in Graphs
Date   Mon, 21 Feb 2005 14:51:49 -0000

This is legal once you balance the parentheses.

I presume you want something more like 

local sqrt2 : di %8.2f sqrt(2) 
twoway function y=x, title("Test-title: `sqrt2'")


Seb Buechte
> we have just come across this question. Is there any possibility to
> force a certain numeric format when using macros in e.g. title-option
> of graph?
> this for example DOES NOT work:
> local sqrt2=string(sqrt(2)
> twoway function y=x, title("Test-title:" %8.2f  `sqrt2')

*   For searches and help try:

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