Hello,
I'm trying to make a square graph in Stata. When I use the aspectratio(1) option, the graph becomes square but the placement of the y-axis remains the same and so there's a gap between the plot region and the axis. How can I correct this? Also is there a way to change the aspect ratio of the graph region to 1 as well?
Thanks,
Mihir

I'm trying to make a square graph in Stata. When I use the aspectratio(1) option, the graph becomes square but the placement of the y-axis remains the same and so there's a gap between the plot region and the axis. How can I correct this? Also is there a way to change the aspect ratio of the graph region to 1 as well?
Code:
#d ; twoway scatter supplyold_grid_end supply_grid_end || lfit supplyold_grid_end supply_grid_end if !missing(supply_grid_end) & !missing(supplyold_grid_end), ti("Admin Supply Data vs. Survey Responses on Hours of Supply", size(med)) legend(off) xtitle("Feeder Supply Data", size(small)) ytitle("Survey Supply Response", size(small)) plotregion(lcolor(black) lwidth(thin)) scheme(s2mono) graphregion(color(white)) aspectratio(1) ; #d cr
Mihir
Comment