mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Fix DotCloud.set_radii
This commit is contained in:
parent
788775e419
commit
d45ea28dc1
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ class DotCloud(PMobject):
|
|||
return self
|
||||
|
||||
def set_radii(self, radii):
|
||||
self.data["radii"][:] = resize_preserving_order(radii, len(self.data["radii"]))
|
||||
n_points = len(self.get_points())
|
||||
radii = np.array(radii).reshape((len(radii), 1))
|
||||
self.data["radii"] = resize_preserving_order(radii, n_points)
|
||||
self.refresh_bounding_box()
|
||||
return self
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue