owmeta.plot module

class owmeta.plot.Plot(*args, no_type_decl=False, **kwargs)[source]

Bases: DataObject

Object for storing plot data in owmeta.

Parameters
data2D list (list of lists)

List of XY coordinates for this Plot.

Example usage:
>>> pl = Plot([[1, 2], [3, 4]])
>>> pl.get_data()
# [[1, 2], [3, 4]]
get_data()[source]

Get the data stored for this plot.

set_data(data)[source]

Set the data attribute, which is user-facing, as well as the serialized _data_string attribute, which is used for db storage.

class_context = owmeta_core.context.ClassContext(ident="http://schema.openworm.org/2020/07/sci")