forestploter.ForestTableLayoutSpec

class forestploter.ForestTableLayoutSpec(auto_width=True, auto_wrap_headers=True, column_padding_pt=6.0, edge_padding_pt=4.0, max_header_lines=3, max_figure_width=16.0, header_padding_pt=4.0)[source]

Configure automatic column widths, header wrapping, and margins.

Parameters:
auto_widthbool, default True

Whether to measure visible text and adjust column widths.

auto_wrap_headersbool, default True

Whether to wrap headers automatically at word boundaries.

column_padding_ptfloat, default 6

Left and right cell padding in points.

edge_padding_ptfloat, default 4

Left and right figure-edge padding in points.

max_header_linesint, default 3

Maximum line count for one header.

max_figure_widthfloat, default 16

Maximum automatically expanded Figure width in inches.

header_padding_ptfloat, default 4

Minimum top and bottom padding for column-header text and each header legend, in points. Must be finite and nonnegative. Header height always adapts to the rendered content, including explicit newlines, even when automatic widths or wrapping are disabled. Extra header space increases Figure height without compressing the body rows.

Parameters:
  • auto_width (bool)

  • auto_wrap_headers (bool)

  • column_padding_pt (float)

  • edge_padding_pt (float)

  • max_header_lines (int)

  • max_figure_width (float)

  • header_padding_pt (float)

__init__(auto_width=True, auto_wrap_headers=True, column_padding_pt=6.0, edge_padding_pt=4.0, max_header_lines=3, max_figure_width=16.0, header_padding_pt=4.0)
Parameters:
  • auto_width (bool)

  • auto_wrap_headers (bool)

  • column_padding_pt (float)

  • edge_padding_pt (float)

  • max_header_lines (int)

  • max_figure_width (float)

  • header_padding_pt (float)

Return type:

None

Methods

__init__([auto_width, auto_wrap_headers, ...])

Attributes

auto_width

auto_wrap_headers

column_padding_pt

edge_padding_pt

header_padding_pt

max_figure_width

max_header_lines