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 on April 23, and its replacement, statalist.org is already up and running.


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

st: AW: Text size in graphs


From   "Martin Weiss" <martin.weiss1@gmx.de>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: AW: Text size in graphs
Date   Mon, 3 May 2010 16:42:08 +0200

<> 


" Does anyone know how to get larger text in a legend. Seems to be
complicated
with the need to resize the legend-box to?"





Larger text in the -legend- is a little involved, as you need to specify
part of the -legend- call inside, and part outside of the -by-
specification:


*************
sysuse auto, clear
tw (scatter mpg price), by(foreign, legend(on)) legend(size(huge))
*************



HTH
Martin


-----Ursprüngliche Nachricht-----
Von: owner-statalist@hsphsun2.harvard.edu
[mailto:owner-statalist@hsphsun2.harvard.edu] Im Auftrag von Tomas Lind
Gesendet: Montag, 3. Mai 2010 16:27
An: statalist@hsphsun2.harvard.edu
Betreff: st: Text size in graphs

Dear listers

I am struggling with getting larger text to fit en OH-slide. 

Does anyone know how to get larger text in a legend. Seems to be complicated
with the need to resize the legend-box to?

Also, I´m doing two graphs side-by-side (-by(sex)-). How do I get a larger
font for the sex-labels (boys, girls) that are shown on top of the graph?


/Tomas



* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
twoway ///
(line p  time    , sort lc(red) lw(thick) )  	///
(line p  time    , sort lc(blue) lw(thick) )  	///
(line p  time    , sort lc(black) lw(thick) )  	///
(line p  time    , sort lc(green) lw(thick) )   , 	///
///
ylabel(0(0.04)0.2 , angle(horiz) labsize(5) )
///
xlabel(1 2 4 8 12 , labsize(5))
///
legend(label(1 "0 risk factors")  		///
	 label(2 "1 risk factors") 		///
	 label(3 "2-3 risk factors")  		///
	 label(4 "4-5 risk factors") )		///
ytitle("Prev wheeze"  , size(5)) 		///
xtitle("Age in years" , size(5)) 		///
by(sex) 					///
scheme(s1mono) 
* XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX	


*
*   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/


*
*   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