Hello all,
I am trying to create a histogram where the x-axis starts exactly at 0, with the first bin touching the y-axis. However, even when the first bin clearly starts at 0, Stata leaves visible space between the y-axis and x = 0. Please see example screenshot below after I input:
histogram Pubs, width(100)
(bin=8, start=0, width=100)

Is there a way to force the x-axis to start exactly at 0 (i.e., eliminate this left-side gap), or is this behavior inherent to how histogram scales axes in Stata?
Thank you,
Ola
I am trying to create a histogram where the x-axis starts exactly at 0, with the first bin touching the y-axis. However, even when the first bin clearly starts at 0, Stata leaves visible space between the y-axis and x = 0. Please see example screenshot below after I input:
histogram Pubs, width(100)
(bin=8, start=0, width=100)
Is there a way to force the x-axis to start exactly at 0 (i.e., eliminate this left-side gap), or is this behavior inherent to how histogram scales axes in Stata?
Thank you,
Ola

Comment