Lattice¶
-
class
leather.Lattice(shape=None)¶ Bases:
objectA grid of charts with synchronized shapes, scales, and axes.
Lattice only supports graphing a single series of data.
Parameters: shape – An instance of Shapeto use to render all series. Defaults toLineif not specified.-
add_many(data, x=None, y=None, titles=None)¶ Same as
Lattice.add_one()exceptdatais a list of data series to be added simultaneously.See
Lattice.add_one()for other arguments.Note that
titlesis a sequence of titles that must be the same length asdata.
-
add_one(data, x=None, y=None, title=None)¶ Add a data series to this lattice.
Parameters:
-
add_x_axis(ticks=None, tick_formatter=None, name=None)¶ Create and add an X
Axis.If you want to set a custom axis class use
Lattice.set_x_axis()instead.
-
add_x_scale(domain_min, domain_max)¶ Create and add a
Scale.If the provided domain values are
dateordatetimethen aTemporalscale will be created, otherwise it willLinear.If you want to set a custom scale class use
Lattice.set_x_scale()instead.
-
add_y_axis(ticks=None, tick_formatter=None, name=None)¶ See
Lattice.add_x_axis().
-
add_y_scale(domain_min, domain_max)¶
-
set_y_axis(axis)¶ See
Lattice.set_x_axis().
-
set_y_scale(scale)¶
-