Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Reducing space between x-axis and bar

    Hi all,

    webuse auto, clear
    hist mpg, freq

    gives me a nice histogram and there is no gap between x-axis line and bar, like below.

    Click image for larger version

Name:	hist.png
Views:	2
Size:	34.3 KB
ID:	1543743

    But,

    twoway histogram mpg, freq

    gives me the same histogram but some "gap" between x-axis line and bar...

    Click image for larger version

Name:	hist.png
Views:	2
Size:	35.6 KB
ID:	1543742



    Is there any way to control this gap with "graph" or "twoway" command, not "histogram"?

    Thanks in advance.

  • #2
    Code:
    . sysuse auto, clear
    (1978 Automobile Data)
    
    . twoway histogram mpg, freq plotregion(margin(b=0))

    Comment

    Working...
    X