You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The stroke width for StreamLines is ignored if only a single color is used. This is not the case when color schemes are used.
Expected behavior
I would expect StreamLines to obey the stroke_width parameter, even for the case when a single color is used.
How to reproduce the issue
Code for reproducing the problem
vector_field=StreamLines(
func, # It is not important what this function is. x_range=[-1, 1, 0.1],
y_range=[-1, 1, 0.1],
padding=0.1,
stroke_width=1.0, # Default is 4.0, hence I would expect them thinner.color=BLUE_D
)
self.add(vector_field)
vector_field.start_animation()
self.wait(2*vector_field.virtual_time/vector_field.flow_speed)
vector_field.end_animation()
Additional media files
Images/GIFs
Logs
Terminal output
PASTE HERE OR PROVIDE LINK TO https://pastebin.com/ OR SIMILAR
System specifications
System Details
OS (with version, e.g., Windows 10 v2004 or macOS 10.15 (Catalina)):
Description of bug / unexpected behavior
The stroke width for StreamLines is ignored if only a single color is used. This is not the case when color schemes are used.
Expected behavior
I would expect StreamLines to obey the
stroke_width
parameter, even for the case when a single color is used.How to reproduce the issue
Code for reproducing the problem
Additional media files
Images/GIFs
Logs
Terminal output
System specifications
System Details
python/py/python3 --version
):pip list
):LaTeX details
FFMPEG
Output of
ffmpeg -version
:Additional comments
I believe manim/mobject/vector_field.py#L832 ought to be the following to enable
stroke_width
whenself.single_color
is true.The text was updated successfully, but these errors were encountered: