esppy.plotting.ChartLayout

class esppy.plotting.ChartLayout(*layout, **kwargs)

Bases: object

Create a layout of charts / images

The layout of chart and image components is specified in the positional arguments of the constructor. Each positional argument becomes a row in the layout. If the argument is a tuple, each item in the tuple becomes a cell in that row.

Parameters
*layoutone-or-more tuple or StreamingImage or StreamingChart

Components of the layout

widthint, optional

The pixel width of the layout

heightint, optional

The pixel height of the layout

Returns
ChartLayout

Examples

The following code will create a layout of two line charts on the first row, a streaming image in the second row, and two streaming scatter plots on the third row.

>>> layout = ChartLayout(
...              (win.streaming_line('x', 'y'),
...               win.streaming_line('x', 'z')),
...              win.streaming_images('img'),
...              (win2.streaming_scatter('a', 'b'),
...               win2.streaming_scatter('a', 'c'))
...          )
>>> layout
__init__(self, *layout, **kwargs)

Initialize self. See help(type(self)) for accurate signature.

Methods

__init__(self, \*layout, \*\*kwargs)

Initialize self.