Change default h_buff on Matrix

This commit is contained in:
Grant Sanderson 2023-02-01 11:38:54 -08:00
parent c062592684
commit 9ef14c7260
2 changed files with 2 additions and 2 deletions

View file

@ -26,7 +26,7 @@ class OpeningManimExample(Scene):
matrix = [[1, 1], [0, 1]]
linear_transform_words = VGroup(
Text("This is what the matrix"),
IntegerMatrix(matrix, include_background_rectangle=True, h_buff=1.0),
IntegerMatrix(matrix, include_background_rectangle=True),
Text("looks like")
)
linear_transform_words.arrange(RIGHT)

View file

@ -76,7 +76,7 @@ class Matrix(VMobject):
self,
matrix: Sequence[Sequence[str | float | VMobject]],
v_buff: float = 0.8,
h_buff: float = 1.3,
h_buff: float = 1.0,
bracket_h_buff: float = 0.2,
bracket_v_buff: float = 0.25,
add_background_rectangles_to_entries: bool = False,