Small fixes to Axes configuration

This commit is contained in:
Grant Sanderson
2022-12-16 14:47:56 -08:00
parent c6fc8dcf45
commit 15f03dae7b
2 changed files with 24 additions and 17 deletions

View File

@ -346,15 +346,16 @@ class CoordinateSystemExample(Scene):
width=10,
# Axes is made of two NumberLine mobjects. You can specify
# their configuration with axis_config
axis_config={
"stroke_color": GREY_A,
"stroke_width": 2,
},
axis_config=dict(
stroke_color=GREY_A,
stroke_width=2,
numbers_to_exclude=[0],
),
# Alternatively, you can specify configuration for just one
# of them, like this.
y_axis_config={
"include_tip": False,
}
y_axis_config=dict(
numbers_with_elongated_ticks=[-2, 2],
)
)
# Keyword arguments of add_coordinate_labels can be used to
# configure the DecimalNumber mobjects which it creates and