Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: PROBLEM fillling in a gray scale for the bars for graph bar


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: PROBLEM fillling in a gray scale for the bars for graph bar
Date   Mon, 19 Jun 2006 17:11:25 +0100

In addition to Thomas Speidel's answer emphasising that
Stata doesn't do dots, stripes, or similar graphical flim-flam, 
I think you need extra commas in the -bar()- options, e.g. 

bar(1, bfc(gs0))

Look again at the help for -graph bar-. 

Nick 
[email protected] 

Anna Gueorguieva

> thank you very much for your incredible help!
> I need my graphs to look good printed black and white.
> The bars need to be filled out, idealy with some black
> white pattern (e.g. dots, vertical lines) or even a
> clear gray scale might work. 
> 
> I am running into the following problem: 
> . graph bar (asis) cov02 cov05 , ///
> >  over(stratum, relabel(1 "Tirana" 2 "Coastal" 3
> "Mountain" 4 "Central" 5 "Total") ) ///
> > legend(label(1 "Coverage in 2002") label(2 "Coverage
> in 2005") ) ytitle("percent of individuals") ///
> > blabel(bar, pos(inside) format(%9.0f) color(white))
> bar(1 bfc(gs0)) bar(2 bfc(gs50)) ///
> > note("Source: LSMS 2002 and 2005.") 
> invalid bar number, 1 bfc(gs0)
> invalid syntax
> invalid syntax
> invalid syntax
> invalid syntax
> 
> Any ideas how I hsould do it? How about a fill in
> pattern?

*
*   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