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

Re: st: Bar Color


From   [email protected] (Jean Marie Linhart, StataCorp.)
To   [email protected]
Subject   Re: st: Bar Color
Date   Tue, 18 Feb 2003 17:35:24 -0600

Friedrich Huebler wrote:
> I am unable to reproduce the first example under "Remarks" on page 72
> of the Graphics manual.
>
> . graph bar mpg weight, bar(1 bcolor(green)) bar(2 bcolor(red))
>   invalid bar number, 1 bcolor(green)
>   invalid syntax
>   invalid syntax
>   invalid syntax
>   invalid syntax
>   r(198);
>
> I have tried different variations and always get the same error
> message. The second example on page 72 does not result in an
> error message. Can anyone get the first example to work? I use Stata 8
> with the latest updates in Windows 98.

We have a typo in the manual.  That example should read:

graph bar mpg weight, bar(1, bcolor(green)) bar(2, bcolor(red))
                      note ^                note ^
		     
I will note that correct syntax can be found in the help file, and
syntax is also correct on p. 117 of the Graphics manual, the main
entry for -graph bar-.

--Jean Marie
[email protected]
*
*   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