Skip to content

armgit / manim

Public Imported from GitHub
0

A community-maintained Python framework for creating mathematical animations.

Change the color of :class:`~.NumberLine` to WHITE from LIGHT_GREY. (#2139)

Laith Bahodi7fc681d3137f
diff --git a/manim/mobject/number_line.py b/manim/mobject/number_line.py
index 1958230fd..c85f1f195 100644
--- a/manim/mobject/number_line.py
+++ b/manim/mobject/number_line.py
@@ -16,7 +16,6 @@ from ..mobject.geometry import Line
from ..mobject.numbers import DecimalNumber
from ..mobject.types.vectorized_mobject import VGroup
from ..utils.bezier import interpolate
-from ..utils.color import LIGHT_GREY
from ..utils.config_ops import merge_dicts_recursively
from ..utils.deprecation import deprecated_params
from ..utils.simple_functions import fdiv
@@ -45,8 +44,6 @@ class NumberLine(Line):
An iterable of specific values with elongated ticks.
longer_tick_multiple
Influences how many times larger elongated ticks are than regular ticks (2 = 2x).
- color
- The color of the line.
rotation
The angle (in radians) at which the line is rotated.
stroke_width
@@ -145,7 +142,6 @@ class NumberLine(Line):
longer_tick_multiple: int = 2,
exclude_origin_tick: bool = False,
# visuals
- color: Color = LIGHT_GREY,
rotation: float = 0,
stroke_width: float = 2.0,
# tip
@@ -205,7 +201,6 @@ class NumberLine(Line):
self.exclude_origin_tick = exclude_origin_tick
# visuals
self.rotation = rotation
- self.color = color
# tip
self.include_tip = include_tip
self.tip_width = tip_width
@@ -223,7 +218,6 @@ class NumberLine(Line):
self.x_range[0] * RIGHT,
self.x_range[1] * RIGHT,
stroke_width=stroke_width,
- color=self.color,
**kwargs,
)
if self.length:
diff --git a/tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz b/tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz
index 9e290fb38..ae64c0d05 100644
Binary files a/tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz and b/tests/control_data/graphical_units_data/coordinate_system/implicit_graph.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/axes.npz b/tests/control_data/graphical_units_data/plot/axes.npz
index 17ecaab9f..0895662cf 100644
Binary files a/tests/control_data/graphical_units_data/plot/axes.npz and b/tests/control_data/graphical_units_data/plot/axes.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/custom_coordinates.npz b/tests/control_data/graphical_units_data/plot/custom_coordinates.npz
index 1072beb40..c189f89af 100644
Binary files a/tests/control_data/graphical_units_data/plot/custom_coordinates.npz and b/tests/control_data/graphical_units_data/plot/custom_coordinates.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_area.npz b/tests/control_data/graphical_units_data/plot/get_area.npz
index 0b71a4ab9..86f986ed4 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_area.npz and b/tests/control_data/graphical_units_data/plot/get_area.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_axis_labels.npz b/tests/control_data/graphical_units_data/plot/get_axis_labels.npz
index 13efe929c..76da3ed56 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_axis_labels.npz and b/tests/control_data/graphical_units_data/plot/get_axis_labels.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_graph_label.npz b/tests/control_data/graphical_units_data/plot/get_graph_label.npz
index 62f1b9412..c90a697a6 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_graph_label.npz and b/tests/control_data/graphical_units_data/plot/get_graph_label.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_lines_to_point.npz b/tests/control_data/graphical_units_data/plot/get_lines_to_point.npz
index f56f66165..d65208f03 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_lines_to_point.npz and b/tests/control_data/graphical_units_data/plot/get_lines_to_point.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz b/tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz
index ec8b72487..f756d2544 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz and b/tests/control_data/graphical_units_data/plot/get_riemann_rectangles.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_x_axis_label.npz b/tests/control_data/graphical_units_data/plot/get_x_axis_label.npz
index 2a40a89eb..c1f5a74e9 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_x_axis_label.npz and b/tests/control_data/graphical_units_data/plot/get_x_axis_label.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_y_axis_label.npz b/tests/control_data/graphical_units_data/plot/get_y_axis_label.npz
index c77c1af89..804e2646d 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_y_axis_label.npz and b/tests/control_data/graphical_units_data/plot/get_y_axis_label.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/get_z_axis_label.npz b/tests/control_data/graphical_units_data/plot/get_z_axis_label.npz
index ef0d5c9b6..d56d4761e 100644
Binary files a/tests/control_data/graphical_units_data/plot/get_z_axis_label.npz and b/tests/control_data/graphical_units_data/plot/get_z_axis_label.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/log_scaling_graph.npz b/tests/control_data/graphical_units_data/plot/log_scaling_graph.npz
index 28b07d999..2abf2c0e0 100644
Binary files a/tests/control_data/graphical_units_data/plot/log_scaling_graph.npz and b/tests/control_data/graphical_units_data/plot/log_scaling_graph.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/plot.npz b/tests/control_data/graphical_units_data/plot/plot.npz
index 24c2c89c4..b88654332 100644
Binary files a/tests/control_data/graphical_units_data/plot/plot.npz and b/tests/control_data/graphical_units_data/plot/plot.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz b/tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz
index f5d5675bd..da26cc739 100644
Binary files a/tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz and b/tests/control_data/graphical_units_data/plot/plot_derivative_graph.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/plot_functions.npz b/tests/control_data/graphical_units_data/plot/plot_functions.npz
index b35cdc6d5..1411fbf70 100644
Binary files a/tests/control_data/graphical_units_data/plot/plot_functions.npz and b/tests/control_data/graphical_units_data/plot/plot_functions.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/plot_line_graph.npz b/tests/control_data/graphical_units_data/plot/plot_line_graph.npz
index f0abcb64c..a184d41bd 100644
Binary files a/tests/control_data/graphical_units_data/plot/plot_line_graph.npz and b/tests/control_data/graphical_units_data/plot/plot_line_graph.npz differ
diff --git a/tests/control_data/graphical_units_data/plot/t_label.npz b/tests/control_data/graphical_units_data/plot/t_label.npz
index 275b005c1..4788950de 100644
Binary files a/tests/control_data/graphical_units_data/plot/t_label.npz and b/tests/control_data/graphical_units_data/plot/t_label.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz b/tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz
index de51c5e18..4dff94bbb 100644
Binary files a/tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz and b/tests/control_data/graphical_units_data/threed/AmbientCameraMove.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Arrow3D.npz b/tests/control_data/graphical_units_data/threed/Arrow3D.npz
index 8a7b1171f..d066e9322 100644
Binary files a/tests/control_data/graphical_units_data/threed/Arrow3D.npz and b/tests/control_data/graphical_units_data/threed/Arrow3D.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Axes.npz b/tests/control_data/graphical_units_data/threed/Axes.npz
index 2fdbe0f2b..9e4eb77bd 100644
Binary files a/tests/control_data/graphical_units_data/threed/Axes.npz and b/tests/control_data/graphical_units_data/threed/Axes.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/CameraMove.npz b/tests/control_data/graphical_units_data/threed/CameraMove.npz
index a24c4b77e..1f4226c6f 100644
Binary files a/tests/control_data/graphical_units_data/threed/CameraMove.npz and b/tests/control_data/graphical_units_data/threed/CameraMove.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz b/tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz
index a8257cdd3..5e0cdc054 100644
Binary files a/tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz and b/tests/control_data/graphical_units_data/threed/CameraMoveAxes.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Cone.npz b/tests/control_data/graphical_units_data/threed/Cone.npz
index ede6e69ee..828a5ef09 100644
Binary files a/tests/control_data/graphical_units_data/threed/Cone.npz and b/tests/control_data/graphical_units_data/threed/Cone.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Cube.npz b/tests/control_data/graphical_units_data/threed/Cube.npz
index 83c8a2a35..a1832bd5b 100644
Binary files a/tests/control_data/graphical_units_data/threed/Cube.npz and b/tests/control_data/graphical_units_data/threed/Cube.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Cylinder.npz b/tests/control_data/graphical_units_data/threed/Cylinder.npz
index 3ccda0eeb..094f808f8 100644
Binary files a/tests/control_data/graphical_units_data/threed/Cylinder.npz and b/tests/control_data/graphical_units_data/threed/Cylinder.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Dot3D.npz b/tests/control_data/graphical_units_data/threed/Dot3D.npz
index 084c5ec0e..e946ae235 100644
Binary files a/tests/control_data/graphical_units_data/threed/Dot3D.npz and b/tests/control_data/graphical_units_data/threed/Dot3D.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/MovingVertices.npz b/tests/control_data/graphical_units_data/threed/MovingVertices.npz
index c16082a38..2da8e3a25 100644
Binary files a/tests/control_data/graphical_units_data/threed/MovingVertices.npz and b/tests/control_data/graphical_units_data/threed/MovingVertices.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Sphere.npz b/tests/control_data/graphical_units_data/threed/Sphere.npz
index 67ae84bdd..a0dcfc426 100644
Binary files a/tests/control_data/graphical_units_data/threed/Sphere.npz and b/tests/control_data/graphical_units_data/threed/Sphere.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz b/tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz
index f4800f5e3..2a2a6f7f7 100644
Binary files a/tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz and b/tests/control_data/graphical_units_data/threed/SurfaceColorscale.npz differ
diff --git a/tests/control_data/graphical_units_data/threed/Torus.npz b/tests/control_data/graphical_units_data/threed/Torus.npz
index d8a679322..f2a8fcaef 100644
Binary files a/tests/control_data/graphical_units_data/threed/Torus.npz and b/tests/control_data/graphical_units_data/threed/Torus.npz differ