Statalist


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

Re: st: How to achieve invisible bars in -graph bar-?


From   "Eva Poen" <[email protected]>
To   [email protected]
Subject   Re: st: How to achieve invisible bars in -graph bar-?
Date   Wed, 30 Jul 2008 18:30:31 +0100

Thank you very much, Sergiy and Scott.

Since the background color of a graph can vary with the scheme, it
would be nice to have a working "invisible" option, though. For my
particular case, Scott's suggestion is very workable; thank you Scott.

Sergiy, thank you for the other example. I haven't tried this with any
other graph command. It looks like a bug to me, or an undocumented
feature. Maybe someone from Statacorp can explain.

Eva

2008/7/30 Scott Merryman <[email protected]>:
> graph bar (mean) length turn , over(foreign)  bar(1, lcolor(white)
> fc(none) )  bar(2, lcolor(white) fc(none) ) blabel(name)
>
> Scott
>
>
> On Wed, Jul 30, 2008 at 11:06 AM, Eva Poen <[email protected]> wrote:
>> Dear all,
>>
>> I am trying to achieve invisible bars in a -graph bar- chart. The idea
>> is to show only the labels and not the bars themselves; all of this is
>> part of my effort to add more information to a -graph bar- chart than
>> Stata allows by default.
>>
>> However, I fail to render the bars invisible. After reading the help
>> on barlook options, I concluded that the following should work:
>>
>> sysuse auto
>> graph bar (mean) length turn, over(foreign)  bar(1, bstyle(none) )
>>
>> In Stata 9.2 and Stata 10, this still gives me the outline of the
>> bars. No matter which combination of -bstyle-, -color-, -fcolor-,
>> -lwidth-, -lcolor-, and -lstyle- I choose, I always end up with an
>> outline around the bars.
>>
>> I find that confusing, since -help areastyle- notes for the style
>> -none-: "no outline and no background color".
>>
>> Is there some way to omit the bars and only print the labels?
>>
>> Thanks,
>> Eva
>> *
>> *   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/
>
*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index