Open Elteoremadebeethoven opened 2 years ago
The reason this happens is that length
overwrites unit_size
, and length
is specified by default for an Axes
. NumberPlane
lets the parameter be None
, so specifying a unit_size
works. See NumberLine
docs for the parameter description.
It's a little janky, but a way you can get around this is by explicitly stating x_length=None
and y_length=None
for an Axes
.
Ok, is that the expected behavior? If so then I can close the issue
This can be resolved together with #2479 by making None
the default value for x_length
and y_length
and then checking whether either these two or unit_size
is set.
Description of bug / unexpected behavior
The Axes class does not respect the
"unit_size"
setting with thex_axis_config
ory_axis_config
parameter.Expected behavior
If you change Axes to NumberPlane then it solves:
How to reproduce the issue
My specs.
Manim 0.12, tested on MacOS M1 Big Sur and Linux Mint 20.1