Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

Re: st: Re: Tip - Special characters in labels, titles of graphs &c


From   "Michael Blasnik" <[email protected]>
To   <[email protected]>
Subject   Re: st: Re: Tip - Special characters in labels, titles of graphs &c
Date   Wed, 13 Dec 2006 09:55:26 -0500

I'd say that "compact" would be a better description of that output, not pretty. If you want pretty that also happens to use the actual font for your graph, I'd suggest running this do file and maybe printing the graph for reference:

set obs 223
gen asciin=_n+32
gen ascii=char(asciin)
gen x=int(asciin/10)
gen y=asciin-10*int(asciin/10)
tw scatter y x , mlab(ascii) mlabpos(0) mlabsize(large) ///
msymbol(i) yscale(range(-.5 9.5)) ylab(0(1)9,g angle(hor)) ///
xlab(3(1)25,grid) xti("First Digit(s) of ASCII Code") ///
yti("Last Digit") xsize(6) ysize(4) plotregion(margin(medium))
graph save asciiplot

This will give you a graph that shows each character in the current graph font and lets you easily see its code based on the x and y axis values. Note: make sure that the graph command hasn't wrapped strangely in your email -- it should be four lines long with the first three lines each ending in ///.

Michael Blasnik


----- Original Message ----- From: "Adrian Mander" <[email protected]>
To: <[email protected]>; <[email protected]>
Sent: Wednesday, December 13, 2006 4:39 AM
Subject: Re: st: Re: Tip - Special characters in labels, titles of graphs &c



A plug for some code I wrote that produces pretty output instead of the suggestion below

ssc install ascii

then just type

ascii

to see all the interesting characters available.

cheers
Ade
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index