From 8d31db7a459c887eb94f83777dcf9f4c31477aea Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Thu, 19 Jan 2023 11:34:47 -0800 Subject: [PATCH] Replace make_approximately_smooth with make_smooth --- _2021/holomorphic_dynamics.py | 4 ++-- _2022/piano/fourier_animations.py | 2 +- outside_videos/misc_thumbnails.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/_2021/holomorphic_dynamics.py b/_2021/holomorphic_dynamics.py index 5705349..b74b642 100644 --- a/_2021/holomorphic_dynamics.py +++ b/_2021/holomorphic_dynamics.py @@ -2968,7 +2968,7 @@ class ShowJuliaSetPoint(TwoToMillionPoints): if self.show_disk: disk.generate_target() disk.target.apply_function(func) - disk.target.make_approximately_smooth() + disk.target.make_smooth(approx=True) anims.append(MoveToTarget(disk, path_arc=path_arc)) if disk.target.get_height() > frame.get_height(): anims.extend([ @@ -3170,7 +3170,7 @@ class AboutJuliaDisks(AboutFatouDisks): for n in range(5): new_disk = disks[-1].copy() new_disk.apply_complex_function(lambda z: z**2 + c) - new_disk.make_approximately_smooth() + new_disk.make_smooth(approx=True) disks.add(new_disk) for disk in disks: diff --git a/_2022/piano/fourier_animations.py b/_2022/piano/fourier_animations.py index 9343b2c..8620259 100644 --- a/_2022/piano/fourier_animations.py +++ b/_2022/piano/fourier_animations.py @@ -453,7 +453,7 @@ class DecomposeAudioSegment(Scene): # Reconstruct approx_wave = graph.copy() # Cheating - approx_wave.set_points_smoothly(graph.get_points()[::150], true_smooth=True) + approx_wave.set_points_smoothly(graph.get_points()[::150]) approx_wave.set_stroke(TEAL, 3, 1.0) self.play( diff --git a/outside_videos/misc_thumbnails.py b/outside_videos/misc_thumbnails.py index 0073f15..07c5715 100644 --- a/outside_videos/misc_thumbnails.py +++ b/outside_videos/misc_thumbnails.py @@ -239,7 +239,7 @@ class ODEThumbnail(Scene): points.append(points[-1] + dt * func(points[-1])) line = VMobject() - line.set_points_smoothly(points, true_smooth=True) + line.set_points_smoothly(points) line.set_stroke([WHITE, WHITE, BLACK], width=[5, 1]) # line.set_stroke((BLUE_C, BLUE_E), width=(10, 1))