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

st: Color intensity: unintended behavior?


From   Friedrich Huebler <[email protected]>
To   [email protected]
Subject   st: Color intensity: unintended behavior?
Date   Fri, 29 Aug 2003 09:37:07 -0700 (PDT)

When the intensity of a color in a graph is changed it is not
possible to revert back to the default intensity when the color is
specified in the command.

. sysuse auto
. graph bar mpg
. graph bar mpg, bar(1, bcolor(*.5))
. graph bar mpg

So far, so good. The bar is drawn with the default intensity, then
with a reduced intensity, then again with the default intensity. Now
let's specify the color in the command.

. graph bar mpg, bar(1, bcolor(navy))
. graph bar mpg, bar(1, bcolor(navy*.5))
. graph bar mpg, bar(1, bcolor(navy))
. graph bar mpg

The second command reduces the intensity but now we are stuck with
it. One might think that multiplying the color by 2 would restore the
original intensity but this is not the case.

. graph bar mpg, bar(1, bcolor(*2))
. graph bar mpg, bar(1, bcolor(navy))

To reset the colors to their default it is necessary to exit and
restart Stata. I assume that this behavior is not intended. Can other
Stata users reproduce this? I use Stata 8.1 and Windows XP.

Thank you.

Friedrich Huebler

__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com
*
*   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