Lattice¶
-
class
leather.
Lattice
(shape=None)¶ Bases:
object
A grid of charts with synchronized shapes, scales, and axes.
Lattice only supports graphing a single series of data.
Parameters: shape – An instance of Shape
to use to render all series. Defaults toLine
if not specified.-
add_many
(data, x=None, y=None, titles=None)¶ Same as
Lattice.add_one()
exceptdata
is a list of data series to be added simultaneously.See
Lattice.add_one()
for other arguments.Note that
titles
is 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
date
ordatetime
then aTemporal
scale 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)¶
-