Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at

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

st: subscript in categorical axis labels

From   Andrew Zeitlin <>
To   "" <>
Subject   st: subscript in categorical axis labels
Date   Tue, 17 Aug 2010 17:26:26 +0100


I have a question regarding the use of subscripts in graphs in Stata 11. In particular, I wish to use subscripts in the label for the categorical axis of a bar graph, where I am using the over() option to specify categories.  The problem is that the subscripts appear as superscripts. 

For example, 

* ---  begin example  --- *

sysuse auto, clear
gr bar price, over(foreign, relabel(1 "Origin{sub:1}" 2 "Origin{sub:2}" ))

* ---  end example  --- *

The problem persists even if the values of the categorical variable are similarly labeled by defining and applying a value label prior to generating the graph.

I have seen Maarten Buis's solution to a similar problem for use in legends, via the alignment() option.  Is there a similar fix for categorical axis labels?

Thanks in advance,

Dr. Andrew Zeitlin
Research Officer
Centre for the Study of African Economies, Department of Economics
Research Fellow in Applied Microeconomics
Lincoln College
University of Oxford
Tel: +44 (0) 1865 271084/284250 (direct)
Mob: +44 (0) 7733 263636
Fax: +44 (0) 1865 281447

*   For searches and help try:

© Copyright 1996–2017 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index