mirror of
https://github.com/3b1b/manim.git
synced 2025-09-01 00:48:45 +00:00
PEP8 for graph_scene.py
This commit is contained in:
parent
72c71871b4
commit
f970b77e67
1 changed files with 22 additions and 50 deletions
|
@ -294,7 +294,6 @@ class GraphScene(Scene):
|
|||
for n in range(n_iterations)
|
||||
]
|
||||
|
||||
|
||||
def get_area(self, graph, t_min, t_max):
|
||||
numerator = max(t_max - t_min, 0.0001)
|
||||
dx = float(numerator) / self.num_rects
|
||||
|
@ -443,7 +442,6 @@ class GraphScene(Scene):
|
|||
|
||||
return group
|
||||
|
||||
|
||||
def add_T_label(self, x_val, side=RIGHT, label=None, color=WHITE, animated=False, **kwargs):
|
||||
triangle = RegularPolygon(n=3, start_angle=np.pi / 2)
|
||||
triangle.scale_to_fit_height(MED_SMALL_BUFF)
|
||||
|
@ -478,9 +476,6 @@ class GraphScene(Scene):
|
|||
self.right_v_line = v_line
|
||||
self.add(self.right_T_label_group, self.right_v_line)
|
||||
|
||||
|
||||
|
||||
|
||||
def get_animation_integral_bounds_change(
|
||||
self,
|
||||
graph,
|
||||
|
@ -534,9 +529,6 @@ class GraphScene(Scene):
|
|||
|
||||
return UpdateFromAlphaFunc(group, update_group, run_time=run_time)
|
||||
|
||||
|
||||
|
||||
|
||||
def animate_secant_slope_group_change(
|
||||
self, secant_slope_group,
|
||||
target_dx=None,
|
||||
|
@ -578,23 +570,3 @@ class GraphScene(Scene):
|
|||
)
|
||||
secant_slope_group.kwargs["x"] = target_x
|
||||
secant_slope_group.kwargs["dx"] = target_dx
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue