Rename SPACE_X_RADIUS to FRAME_X_RADIUS, and added constant FRAME_WIDTH (likewise for all y-coordinate information)

This commit is contained in:
Grant Sanderson
2018-03-30 11:25:37 -07:00
parent 55786e443d
commit e168bfe5ba
98 changed files with 952 additions and 958 deletions

View File

@ -188,7 +188,7 @@ class GraphScene(Scene):
#Search from right to left
for x in np.linspace(self.x_max, self.x_min, 100):
point = self.input_to_graph_point(x, graph)
if point[1] < SPACE_Y_RADIUS:
if point[1] < FRAME_Y_RADIUS:
break
x_val = x
label.next_to(