SharpPlot Reference > SharpPlot Methods > SetTrellis Method

SharpPlot.SetTrellis Method

Creates a trellised layout given (cells down, cells across) or the total cell count.

Example

sp.SetTrellis(19); // Auto layout
sp.SetTrellis(3,4); // Grid

Overloads

This method carves up the available paper size into a rectangular collection of frames. The NewCell method must be called to move to the next available cell, working across the rows or snaking down the columns depending on the TrellisStyle setting.

If the requested total cell count does not fit nicely into the page shape, there will be vacant cells in the lower right corner.

See also ...

SharpPlot Members | SharpPlot.TrellisStyle Property | SharpPlot.DrawMultiple Method | SharpPlot.NewCell Method


Send comments on this topic
© Dyalog Ltd 2021