Open
Description
Describe the bug
I have a pair of numbered axes. I want to Indicate() a few numbers on the axes. Whenever I indicate the numbers as a group, the axis line dissapears.
This is better explained with the code and video below.
Code:
from manimlib import *
class AxErr(InteractiveScene):
def construct(self):
ax = Axes(
x_range=(0,5,1),
y_range=(0,5,1),
height=6,
width=6,
x_axis_config={'include_numbers': True},
y_axis_config={
'include_numbers': True,
'line_to_number_direction': UP,
}
)
self.add(ax)
x_axis, y_axis = ax
x_axis_nums: VGroup = x_axis[1]
y_axis_nums: VGroup = y_axis[1]
self.play(Indicate(x_axis_nums[0])) # Works fine
self.play(Indicate(VGroup(x_axis_nums[0]))) # x- axis line dissapears
self.play(Indicate(VGroup(x_axis_nums[0], y_axis_nums[1]))) # y-axis line dissapears as well
self.play( # Axes also dissapear if you do this
AnimationGroup(
Indicate(x_axis_nums[1]),
Indicate(y_axis_nums[2])
)
)
The only workaround is to have the numbers Indicated in a separate play() phrase.
Wrong display or Error traceback: