render_grid_pdf
Mojo function 🡭
render_grid_pdf
fn def render_grid_pdf(plots: List[AnyChart], cells: List[GridCell], width: Int, height: Int, row_weights: List[Float64] = List(), col_weights: List[Float64] = List(), shared_y_scale: Bool = False, shared_x_scale: Bool = False, align_axes: Bool = False, title: String = "") -> PdfCanvasrender_grid()’s counterpart for a one-page PdfCanvas (#372), with the same cell layout. width/height are points, 1/72 inch, so the page is the figure.
Args:
- plots (
List[AnyChart]): The charts, one per cell. - cells (
List[GridCell]): Where each plot goes. - width (
Int): Figure width in points. - height (
Int): Figure height in points. - row_weights (
List[Float64]): Relative row heights, empty for equal rows. - col_weights (
List[Float64]): Relative column widths, empty for equal columns. - shared_y_scale (
Bool): Give every cell one y-domain. - shared_x_scale (
Bool): Give every cell one x-domain. The continuous marks pool their x extents; categorical cells must name the same categories in the same order. - align_axes (
Bool): Share plot-rect edges, asrender_grid(). - title (
String): A figure title above the cells, asrender_grid().
Returns:
PdfCanvas: The finished document.
Raises:
Error: As render_grid().