mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
fix changing coordinates color
This commit is contained in:
parent
ca0b7a6b06
commit
4d78e0c63e
1 changed files with 5 additions and 5 deletions
|
@ -186,19 +186,19 @@ class Axes(VGroup, CoordinateSystem):
|
|||
def get_axes(self):
|
||||
return self.axes
|
||||
|
||||
def get_coordinate_labels(self, x_vals=None, y_vals=None):
|
||||
def get_coordinate_labels(self, x_vals=None, y_vals=None, **kwargs):
|
||||
if x_vals is None:
|
||||
x_vals = []
|
||||
if y_vals is None:
|
||||
y_vals = []
|
||||
x_mobs = self.get_x_axis().get_number_mobjects(*x_vals)
|
||||
y_mobs = self.get_y_axis().get_number_mobjects(*y_vals)
|
||||
x_mobs = self.get_x_axis().get_number_mobjects(*x_vals, **kwargs)
|
||||
y_mobs = self.get_y_axis().get_number_mobjects(*y_vals, **kwargs)
|
||||
|
||||
self.coordinate_labels = VGroup(x_mobs, y_mobs)
|
||||
return self.coordinate_labels
|
||||
|
||||
def add_coordinates(self, x_vals=None, y_vals=None):
|
||||
self.add(self.get_coordinate_labels(x_vals, y_vals))
|
||||
def add_coordinates(self, x_vals=None, y_vals=None, **kwargs):
|
||||
self.add(self.get_coordinate_labels(x_vals, y_vals, **kwargs))
|
||||
return self
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue