Bookmark and Share

Notice: On March 31, it was announced that Statalist is moving from an email list to a forum. The old list will shut down at the end of May, and its replacement, statalist.org is already up and running.


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

st: Rectifying y-axis labels using a tiny .scheme


From   Ronan Conroy <rconroy@rcsi.ie>
To   statalist edu <statalist@hsphsun2.harvard.edu>
Subject   st: Rectifying y-axis labels using a tiny .scheme
Date   Thu, 14 Apr 2011 13:21:51 +0100

For years I have been carefully writing

ylabel(,angle(0)

to ensure that the numbers on the vertical axis of graphs are written horizontally rather than vertically, which is the Stata default. 

Recently I came across Vince Wiggins' presentation on writing your own graph schemes, and lo and behold the answer was there. 

A tiny scheme file (in my case called rcs2color.scheme) as follows

#include s2color
anglestyle vertical_tick     horizontal

This makes just one change to the s2color scheme, and now my axes can be read without twisting my neck.

I can only recommend Vince's presentation: http://econpapers.repec.org/paper/bocusug06/11.htm




Ronán Conroy
rconroy@rcsi.ie
Associate Professor
Division of Population Health Sciences
Royal College of Surgeons in Ireland
Beaux Lane House
Dublin 2


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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   |   Site index