Statalist


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

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


From   Scott Merryman <[email protected]>
To   [email protected]
Subject   Re: st: sts graph: setting color of graph region
Date   Fri, 18 Dec 2009 15:17:11 -0600

I believe when you specify -none- there is no color applied to the
graph and plot regions, so the line and fill colors default to
background color.  In case of scheme-s2color.scheme, the background
color is set to -ltbluishgray-

Another option is to create a new scheme, modified from the s2color
scheme.  It would take 2 lines of code:

#include s2color
color background  white

Save as -scheme-whitebg.scheme and then:
-sts graph, scheme(whitebg)-

Scott


On Fri, Dec 18, 2009 at 2:23 PM, Michael McCulloch
<[email protected]> wrote:
> Hello,
> 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 no
> 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.
>
>
> 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:
> *   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index