mirror of
https://github.com/3b1b/manim.git
synced 2025-04-13 09:47:07 +00:00
Switched WindingNumber to use np.linspace; also, fixed missing colon in extract_scene.py
This commit is contained in:
parent
5c0bbbc4be
commit
4c6af541c1
2 changed files with 3 additions and 3 deletions
|
@ -1041,8 +1041,8 @@ class VectorField(Scene):
|
||||||
x_min, y_min = num_plane.point_to_coords(SPACE_WIDTH * LEFT + SPACE_HEIGHT * UP)
|
x_min, y_min = num_plane.point_to_coords(SPACE_WIDTH * LEFT + SPACE_HEIGHT * UP)
|
||||||
x_max, y_max = num_plane.point_to_coords(SPACE_WIDTH * RIGHT + SPACE_HEIGHT * DOWN)
|
x_max, y_max = num_plane.point_to_coords(SPACE_WIDTH * RIGHT + SPACE_HEIGHT * DOWN)
|
||||||
|
|
||||||
x_points = range_via_num_steps(x_min, x_max, self.granularity)
|
x_points = np.linspace(x_min, x_max, self.granularity)
|
||||||
y_points = range_via_num_steps(y_min, y_max, self.granularity)
|
y_points = np.linspace(y_min, y_max, self.granularity)
|
||||||
points = it.product(x_points, y_points)
|
points = it.product(x_points, y_points)
|
||||||
|
|
||||||
sized_arrows = Group()
|
sized_arrows = Group()
|
||||||
|
|
|
@ -73,7 +73,7 @@ def get_configuration():
|
||||||
if args.output_name != None:
|
if args.output_name != None:
|
||||||
output_name_root, output_name_ext = os.path.splitext(args.output_name)
|
output_name_root, output_name_ext = os.path.splitext(args.output_name)
|
||||||
expected_ext = '.png' if args.show_last_frame else '.mp4'
|
expected_ext = '.png' if args.show_last_frame else '.mp4'
|
||||||
if not output_name_ext in ['', expected_ext]
|
if not output_name_ext in ['', expected_ext]:
|
||||||
print "WARNING: The output will be to (doubly-dotted) %s%s"%output_name_root%expected_ext
|
print "WARNING: The output will be to (doubly-dotted) %s%s"%output_name_root%expected_ext
|
||||||
output_name = args.output_name
|
output_name = args.output_name
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Add table
Reference in a new issue