[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
st: RE: bug in color(black) for twoway bar ?
My apologies for assuming what I could not figure out in over an hour
must be something wrong with Stata rather than me (!). Your advice
was easier to implement that that of the Stata's tech help, which was
rapidly in by inbox and also works, but there was a complication.
In your command,
graph twoway bar y x, barwidth(0.5) bstyle(none) color(black) ylabel(0
does not give filled black for me. I must instead say
graph twoway bar y x, barwidth(0.5) bstyle(none) bfcolor(black) ylabel
neither color(black) nor blcolor(black) are paid attention to.
The intensity level of the bar color in -twoway bar- is set at 80%
line intensity is set at 100%. I believe this is done in order to
differentiate between the bars (since -twoway bar- places the bars
to each other by default).
While the -graph bar- command allows for an -intensity- option, the
bar- command does not. The intensity level is set in the scheme
file, so you
would need to alter the scheme in order to change this behavior.
If you want
to go to the trouble, you could change the following line in the
scheme-s2color.scheme (the s1color scheme uses settings in s2color)
intensity p inten80
intensity p inten100
Then, when you issue your -twoway bar- command with the -bfcolor
option your bars will turn out as black as the bars in -graph bar-.
This is neither platform-specific nor a bug - it is a "feature"
The default intensity for all shaded areas in twoway plots is 80%.
You can override this by removing the style before applying the
graph twoway bar y x, barwidth(0.5) bstyle(none) color(black) ylabel
[mailto:email@example.com]On Behalf Of David Airey
Sent: 31 August 2005 01:22
Subject: st: bug in color(black) for twoway bar ?
On OS X Stata 9, it seems impossible to get black bars for twoway bar
graphs. It is possible in graph bar.
set scheme s1color
input y x
// produce dark gray bars
graph twoway bar y x, barwidth(0.5) color(black) ylabel(0(25)100)
// produces black bars
graph bar y x, bar(1, color(black)) bar(2, color(black))
/* about produces
Stata/SE 9.0 for Macintosh
Born 05 Jul 2005
Copyright (C) 1985-2005
* For searches and help try: