mirror of
https://github.com/3b1b/manim.git
synced 2025-09-19 04:41:56 +00:00
Fix bug deleting i from coordinate labels
This commit is contained in:
parent
90e8a397b8
commit
83393abb22
1 changed files with 1 additions and 3 deletions
|
@ -716,9 +716,7 @@ class ComplexPlane(NumberPlane):
|
||||||
axis = self.get_x_axis()
|
axis = self.get_x_axis()
|
||||||
value = z.real
|
value = z.real
|
||||||
number_mob = axis.get_number_mobject(value, **kwargs)
|
number_mob = axis.get_number_mobject(value, **kwargs)
|
||||||
# For i and -i, remove the "1"
|
# For -i, remove the "1"
|
||||||
if z.imag == 1:
|
|
||||||
number_mob.remove(number_mob[0])
|
|
||||||
if z.imag == -1:
|
if z.imag == -1:
|
||||||
number_mob.remove(number_mob[1])
|
number_mob.remove(number_mob[1])
|
||||||
number_mob[0].next_to(
|
number_mob[0].next_to(
|
||||||
|
|
Loading…
Add table
Reference in a new issue