scale_to_fit_width -> set_width, likewise for height and depth

This commit is contained in:
Grant Sanderson
2018-08-08 10:30:52 -07:00
parent aa223e99d7
commit 7119f0cc6e
98 changed files with 867 additions and 867 deletions

View File

@ -1473,7 +1473,7 @@ class VennDiagramProofByContradiction(Scene):
#Split to hundred
photons = VGroup(*[photon.deepcopy() for x in range(100)])
self.arrange_photons_in_circle(photons)
photons.scale_to_fit_height(6)
photons.set_height(6)
photons.next_to(words, DOWN)
photons.to_edge(LEFT)
@ -1555,7 +1555,7 @@ class VennDiagramProofByContradiction(Scene):
MoveToTarget(A),
MoveToTarget(A.label),
FadeOut(self.photon_words),
self.photons.scale_to_fit_height,
self.photons.set_height,
0.85*A.target.get_height(),
self.photons.space_out_submobjects, 0.8,
self.photons.move_to, A.target,
@ -2016,7 +2016,7 @@ class VennDiagramProofByContradiction(Scene):
for i in range(len(photons) - len(pairs)):
pairs.append(rejected.pop())
for photon, (x, y) in zip(photons, pairs):
photon.scale_to_fit_width(0.7)
photon.set_width(0.7)
photon.move_to(x*RIGHT + y*UP)
return photons