Bookmark and Share

Notice: On April 23, 2014, Statalist moved from an email list to a forum, based at statalist.org.


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

Re: st: Changing graphregion color in gr twoway with by


From   Brad Humphreys <[email protected]>
To   [email protected]
Subject   Re: st: Changing graphregion color in gr twoway with by
Date   Thu, 12 Aug 2010 10:40:34 -0400

Thanks very much!  That solved my problem.  For those following this
thread in the archives, here is the revised code:

twoway (line var1 year, xline(1980 1992 1996)),  by(var2, iscale(*.8)
yrescale xrescale iylabel ixlabel graphregion( fcolor(green) ));

Brad


On Thu, Aug 12, 2010 at 10:32 AM, Scott Merryman
<[email protected]> wrote:
> The region options have to be with the -by()- option:
>
> sysuse auto
> scatter mpg weight, by(fore, graphregion(color(green)))
>
> Scott
>
>
> On Thu, Aug 12, 2010 at 8:53 AM, Brad Humphreys <[email protected]> wrote:
>> Hi statlisters,
>>
>> I am having trouble changing the graphregion color in a twowar graph
>> with the by option.  Here's the code I've tried:
>>
>> twoway (line var1 year, xline(1980 1992 1996)),  by(var2, iscale(*.8)
>> yrescale xrescale iylabel ixlabel)
>> graphregion( fcolor(green) icolor(green) color(green) ifcolor(green));
>>
>> I have tried to fill in every graphregion option that I cam think of
>> in that graphregion(.) option, but the color of the graph never
>> changes.  This has been easy for lots of other graphs.
>>
>> I have also tried the undocumented option bgcolor(<colorstyle>) that I
>> read about here.  That didn't work either.
>>
>> Any suggestions about changing this color?
>>
>> Thanks,
>>
>> Brad Humphreys
>> University of Alberta
>
> *
> *   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–2018 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   Site index