Dear all,

I am trying to figure out how to ensure that a 45-degree line is also visually a 45-degree line in twoway.

In this example:
Code:
clear all
set obs 70   
gen x=0+(8-2)*runiform() 
gen y1 = 5 + x
twoway line x x || line y1 x
it would be great to
  • Ensure that "line x x" is visually a 45-degree line
  • i.e. that the "distance" between 0 and 1 is the same on the x and y axis
  • such that the plotted window adjusts accordingly
Any hints are greatly appreciated!