mirror of
https://github.com/3b1b/manim.git
synced 2025-08-05 16:49:03 +00:00
Merge pull request #409 from Jaspi10/master
Fixed a ZeroDivisionError when instantiating Axes
This commit is contained in:
commit
4fa799c4c6
1 changed files with 2 additions and 2 deletions
|
@ -38,12 +38,12 @@ class Axes(VGroup):
|
|||
VGroup.__init__(self, **kwargs)
|
||||
x_axis_config = merge_config([
|
||||
self.x_axis_config,
|
||||
{"x_min": self.x_min, "x_max": self.x_min},
|
||||
{"x_min": self.x_min, "x_max": self.x_max},
|
||||
self.number_line_config,
|
||||
])
|
||||
y_axis_config = merge_config([
|
||||
self.y_axis_config,
|
||||
{"x_min": self.y_min, "x_max": self.y_min},
|
||||
{"x_min": self.y_min, "x_max": self.y_max},
|
||||
self.number_line_config,
|
||||
])
|
||||
self.x_axis = NumberLine(**x_axis_config)
|
||||
|
|
Loading…
Add table
Reference in a new issue