Array
Hi, I am relatively new to Stata and am trying to plot a two-way histogram to compare education expenditure between males and females. The values range from 0-140000 dollars.

Code:
twoway (histogram schoolspend if female == 1, fcolor(navy) lcolor(navy)                 ///
            lpattern(solid))(histogram schoolspend if female == 0, fcolor(none)             ///
            lcolor(black) lpattern(solid)) if african == 1, xtitle(Spend)     ///
            title(Gender Education spend Distributions) legend(on order(1 "Female" 2 "Male"))     ///
            scheme(s1manual)
produces the attached graph. I am wanting to measure the the frequency on the y axis and would like to limit the x-axis to 10000 with intervals of 500. Is this possible?
Any assistance would be appreciated