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

Re: st: sts graph: setting color of graph region

From   Michael McCulloch <>
Subject   Re: st: sts graph: setting color of graph region
Date   Fri, 18 Dec 2009 14:40:59 -0800

Thanks to Scott and Friedrich.

Scott suggested the following successful change:
	-sts graph, graphregion(color(none))-
	-sts graph, graphregion(color(white))-

Friedrich pointed me to an archive post ( ): which suggested using the undocumented -bgcolor()- option, which removed the remaining border color:
	-scatter mpg weight, graphregion(color(white)) bgcolor(white)-

On Dec 18, 2009, at 2:31 PM, Friedrich Huebler wrote:


Here are some posts from the archive that may help.


On Fri, Dec 18, 2009 at 4:36 PM, Michael McCulloch
<> wrote:
Thanks Scott,

However, there's still a narrow border around the outer region with
-lblueishgrey- shading, which I've tried unsuccessfully to suppress with:
sts graph, graphregion(color(white) lcolor(none))
sts graph, graphregion(color(white) margin(zero))
sts graph, graphregion(color(white) margin(none))
sts graph, graphregion(color(white) lstyle(none))

Sorry for the picky request, but the journal requires no color at all in

On Dec 18, 2009, at 12:56 PM, Scott Merryman wrote:


-sts graph, graphregion(color(white))-


On Fri, Dec 18, 2009 at 2:23 PM, Michael McCulloch
<> wrote:

In Stata 9, for sts graph, I'd like to have the entire graph, both graph region and plot region, have no shading. I've tried the following, with
change in fill coloring:

sysuse cancer, clear
stset studytime
sts graph, graphregion(style(none))
sts graph, graphregion(fcolor(none))
sts graph, graphregion(color(none))

And the following makes the entire graph filled in sky blue, even though
I've specified "none":
sts graph, plotregion(fcolor(none))

Any suggestions would be appreciated.
*   For searches and help try:

Best wishes,

Michael McCulloch
Pine Street Foundation
124 Pine Street
San Anselmo, CA 94960-2674
tel:	415-407-1357
fax: 	206-338-2391

*   For searches and help try:

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