| Search Locate Previous Next | Contents |
When a series of miniature charts is arranged in a trellis layout, the default is to require an explicit call to ch.NewCell to move between cells. This is to allow you to draw several data-series on the same axis set in each cell. If you only require a single chart in each cell, you can set the trellis style skip which skips on to the next cell after every chart.
ch.Set 'TStyle ' skip' ch.Trellis 2 3 :for ct :in 1 2 3 4 5 6 ch.Plot mat[ct;;] :end
The normal ordering of the cells is to work across the columns, then down the rows. To switch this to work down the columns, you can set the snake style:
ch.Set 'TStyle' 'snake'
The default is to have any properties set on the first chart (headings, axes etc.) apply to the entire set. This is what you would expect for a simple small multiple layout. However if you are using the trellis simply as a way of arranging a collection of unrelated small charts, set the reset style to have all properties (except reset!) put back to default between each chart. This saves an explicit call to ch.Reset within the plotting loop.
ch.Set 'ts' 'reset'
Finally, you can set the style to Paged to have RainPro output one chart per page (rather than one per cell) when you use a Multiple plot.
See Thumbnails, SmallMultiple and MultiTrellis (in the RainPro workspace) for some sample code.
See also ...
ch.Multiple small multiples
Gutter chart gutter
Trellis trellis of small charts