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

From |
"Dan Weitzenfeld" <[email protected]> |

To |
[email protected] |

Subject |
Re: st: graph added text behaving strangely |

Date |
Fri, 26 Oct 2007 14:03:30 -0700 |

Scott, I expected 50_59 to be above 50_50 because in a horizontal bar chart, the categorical axis is called the x axis, even though it is vertical. I have managed to produce a triangle while varying only one coordinate in the auto.dta dataset: sysuse auto,clear graph hbar mpg, over(head) text( 20 25 "20_25" 20 15 "20_15" 20 10 "20_10") bar(1, fcolor(gs15)) Are you getting a triangle or a straight line when you run that code (is it a problem with my version/install of stata? I'm using 10.0...) Thanks, Dan On 10/26/07, Scott Merryman <[email protected]> wrote: > Can you produce this with the auto.dta data set? > > For example: > > sysuse auto,clear > graph bar mpg, over(head) text( 20 25 "50_25" 20 50 "50_50" 20 59 > "50_59") bar(1, fcolor(gs15)) > > the added text is where it is expected. > > Also, why would you expect "50_59" to be above "50_50" since you are > only changing the x coordinate? > > Scott > > > On 10/26/07, Dan Weitzenfeld <[email protected]> wrote: > > I'm adding text to a horizontal bar graph. I know that the x range is > > [0, 100] and that "in a horizontal bar chart, the numerical axis is > > still called the y axis and the categorical axis is still called the x > > axis" (help graph bar - I read my manuals). > > So, to get familiar with how this works, I added the following to a > > horizontal bar graph command: > > > > text( 50 25 "50_25" 50 50 "50_50" 50 59 "50_59") > > > > Can someone explain why these three notes were in a triangle and not a > > straight line? I varied only the x coordinate! Yet the last note, > > "50_59", was to the right of "50_50," rather than above it where I > > expected it to be... > > > > Thanks in advance, > > Dan > * > * 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/ > * * 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/

**Follow-Ups**:**Re: st: graph added text behaving strangely***From:*Maarten buis <[email protected]>

**Re: st: graph added text behaving strangely***From:*"Scott Merryman" <[email protected]>

**References**:**st: graph added text behaving strangely***From:*"Dan Weitzenfeld" <[email protected]>

**Re: st: graph added text behaving strangely***From:*"Scott Merryman" <[email protected]>

- Prev by Date:
**Re: st: RE: date function** - Next by Date:
**Re: st: A question about -esttab-** - Previous by thread:
**Re: st: graph added text behaving strangely** - Next by thread:
**Re: st: graph added text behaving strangely** - Index(es):

© Copyright 1996–2024 StataCorp LLC | Terms of use | Privacy | Contact us | What's new | Site index |