Skip to content

0.17.3 MathTable - first and last column of MathTable are truncated #3446

Description

@uwezi

Description of bug / unexpected behavior

Setting a fixed width of the columns in a MathTable() is not correctly supported for the first and last column, which are truncated at the left and right edge of the table elements.

Expected behavior

The given width should be obeyed independent on the contents of the cells.

How to reproduce the issue

Code for reproducing the problem
class Test(Scene):
    def construct(self):
        mytable = MathTable(
            [[1, 10, 100, 1000, 10000, 100000], [0,0,0,0,0,0]],
            h_buff=.1,
            v_buff=.1,
            include_outer_lines=True,
            arrange_in_grid_config={"col_widths":[3]*6, "col_alignments": ["c"]*6}
        ).scale_to_fit_width(10)
        self.add(mytable)

Additional media files

Images/GIFs ![image](https://github.com/ManimCommunity/manim/assets/8582807/81f27b5e-1ef0-4fdc-88a1-f0f32e3803c0)

System specifications

System Details
  • OS: Windows 10 64bit
  • Python version (python/py/python3 --version): 3.11.6
LaTeX details + LaTeX distribution (e.g. TeX Live 2020): MikTex

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Status
    🆕 New

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions