Scatterfit is a user-written command for Stata that produces a wide range of scatter plots with overlaid fit lines. To install the package, execute the following command in Stata
net install scatterfit, from(https://raw.githubusercontent.com/leojahrens/scatterfit/master) replace
Once installed, please see help scatterfit
for syntax and the whole range of options.