Hide navigation sidebar
Hide table of contents sidebar
Back to top
Toggle table of contents sidebar

# Grid

class leather.Grid

  Bases: `object`

  A container for a set of `Chart` instances that are rendered in a grid layout.

  add_one(chart)

    Add a `Chart` to the grid.

  add_many(charts)

    Add a sequence of charts to this grid.

  to_svg(path=None, width=None, height=None)

    Render the grid to an SVG.

    The `width` and `height` arguments refer to the size of the entire grid. The size of individual charts will be inferred automatically.

    See `Chart.to_svg()` for arguments.