From 9ef14c7260f3f14c4d1072080753ddd9b2735ca0 Mon Sep 17 00:00:00 2001 From: Grant Sanderson Date: Wed, 1 Feb 2023 11:38:54 -0800 Subject: [PATCH] Change default h_buff on Matrix --- example_scenes.py | 2 +- manimlib/mobject/matrix.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/example_scenes.py b/example_scenes.py index 3134d484..9aa3e108 100644 --- a/example_scenes.py +++ b/example_scenes.py @@ -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) diff --git a/manimlib/mobject/matrix.py b/manimlib/mobject/matrix.py index cbf5458a..001bfb02 100644 --- a/manimlib/mobject/matrix.py +++ b/manimlib/mobject/matrix.py @@ -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,