Statalist The Stata Listserver


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

Re: st: no space between graph bars and x-axis


From   [email protected]
To   [email protected]
Subject   Re: st: no space between graph bars and x-axis
Date   Tue, 08 May 2007 15:31:16 -0500

You can eliminate the lower plot region margin.

For example:


sysuse auto,clear
collapse (mean) mpg, by(rep)
graph twoway bar mpg  rep, fcolor(white) lcolor(black)  plotregion
(margin(b = 0))


Scott


----- Original Message -----
From: Jason Thompson <[email protected]>
Date: Tuesday, May 8, 2007 1:47 pm
Subject: st: no space between graph bars and x-axis
To: statalist <[email protected]>

> Can someone direct me to the graph option which positions bars 
> directly on the x axis, rather than floating slightly above it? 
> Simple code included below for concreteness. The correct -findit- 
> term would do wonders as my Stata graphing lexicon is woefully 
> incomplete. Many thanks.
> 
> graph twoway bar meanpf MH_gap, fcolor(white) lcolor(black)


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