mirror of
https://github.com/3b1b/manim.git
synced 2025-08-21 05:44:04 +00:00
resolving imag axis number mob in ComplexPlane
This commit is contained in:
parent
8eccc9757e
commit
8fa4a75b41
1 changed files with 0 additions and 7 deletions
|
@ -770,13 +770,6 @@ 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, font_size=font_size, **kwargs)
|
number_mob = axis.get_number_mobject(value, font_size=font_size, **kwargs)
|
||||||
# For -i, remove the "1"
|
|
||||||
if z.imag == -1:
|
|
||||||
number_mob.remove(number_mob[1])
|
|
||||||
number_mob[0].next_to(
|
|
||||||
number_mob[1], LEFT,
|
|
||||||
buff=number_mob[0].get_width() / 4
|
|
||||||
)
|
|
||||||
self.coordinate_labels.add(number_mob)
|
self.coordinate_labels.add(number_mob)
|
||||||
self.add(self.coordinate_labels)
|
self.add(self.coordinate_labels)
|
||||||
return self
|
return self
|
||||||
|
|
Loading…
Add table
Reference in a new issue