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

Re: st: Changing plot background color


From   "Dimitriy V. Masterov" <[email protected]>
To   [email protected]
Subject   Re: st: Changing plot background color
Date   Tue, 23 Mar 2004 17:55:56 -0600 (CST)

Try this line in your command for a snow-white background:

plotregion(fcolor(white)) graphregion(fcolor(white))


Here is an example of a command that I might use:

*********************************************************
graph bar (asis) NCDSab BCSab NCDSinc BCSinc if sex==`sex',
by(level,
title("Figure 1" "Marginal Effect of Cognitive Ability and Log Family"
"Income on Final Schooling Attainment")
subtitle("``sex'' from NCDS and BCS, Age 10-11")
note("Based on ordered probit estimates of the probability of achieving a
given level of schooling. Marginal"
"effects are calculated controlling for family and socio-economic
characteristics"
"Source: Galindo-Rueda and Vignoles (2003).", span size(small) ))
subtitle(, pos(12) ring(1) prefix nobexpand nobox span size(small))
ytitle(Probability)
legend(cols(2) size(small) symxsize(2) symysize(3) span )
lintensity(500) blabel(bar, size(vsmall) format(%9.3f))
plotregion(fcolor(white)) graphregion(fcolor(white))
;
*********************************************************


DVM
On Tue, 23 Mar 2004, Richard Hoskins wrote:

> I have some plots from Stata, latest version, but there is a gray
> background. How can I remove the grey background so I can use them for
> publication?
>
> Thanks
>
> New to STATA,
>
> R Hoskins
> WA State DOH
>
>
>
> *
> *   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/
>

_______________________________________________________________________________
Dimitriy V. Masterov

Work:
Center for Social Program Evaluation
1155 East 60th St. Room 038
Chicago, IL 60637
Work: (773)256-6005
Fax: (773)256-6313

Home:
1312 East 53rd St., Apt.309
Chicago, IL 60615
Mobile: (773)220-2760


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