Fix bug deleting i from coordinate labels

This commit is contained in:
Grant Sanderson 2022-11-18 09:10:24 -08:00
parent 90e8a397b8
commit 83393abb22

View file

@ -716,9 +716,7 @@ class ComplexPlane(NumberPlane):
axis = self.get_x_axis()
value = z.real
number_mob = axis.get_number_mobject(value, **kwargs)
# For i and -i, remove the "1"
if z.imag == 1:
number_mob.remove(number_mob[0])
# For -i, remove the "1"
if z.imag == -1:
number_mob.remove(number_mob[1])
number_mob[0].next_to(