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

st: RE: Escaping dollar sign in graphs

From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: Escaping dollar sign in graphs
Date   Mon, 14 Jun 2004 22:12:40 +0100

This is indeed a nuisance when you want something 
different from Stata's treatment here. The cross-reference 
implied is to the thread started by Phil Ryan on 
21 May. See e.g.

The story there is that using the escape character
works only so far as the next program called, which 
sees e.g. $US or $CA and misinterprets those 
as references to global macros. The story there 
also is that using SMCL provides an  existing 

Patrick clearly flagged this as a question 
for StataCorp, but it would seem 20 years too 
late to undefine $ as indicating global macros. 

Possibly StataCorp can define c($) as the dollar 
symbol as a less cryptic alternative to {c S|} 
or `=char(36)'. No idea how difficult that would 

[email protected] 

> -----Original Message-----
> From: [email protected]
> [mailto:[email protected]]On Behalf Of
> [email protected]
> Sent: 14 June 2004 21:53
> To: [email protected]
> Subject: st: Escaping dollar sign in graphs
> This problem came up on the list a few weeks but I would like 
> to ask Stata
> whether something can be done about this issue. Specifically, 
> the problem is
> that, given a have variable whose label contains a dollar sign say
> . la var xrus "\$US per \$CA"
> and trying to plot it as either
> . twoway line xrus year
> . twoway line xrus year, ytitle("\$US per \$CA")
> causes the currency units to vanish from the y-axis title, 
> leaving only "
> per " behind.
> This is a bug isn't it?  Or a very unfortunate mis-feature 
> IMO.  It *should*
> be possible to print basic ASCII characters set in graphs.  
> Can something be
> done about this, this is particularly troublesome for economists.
> Patrick Joly
> *
> *   For searches and help try:
> *
> *
> *

*   For searches and help try:

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