DataSet

class visualife.core.DataSet(converter, *args, **kwargs)

Bases: object

Stores data for serie and its min and max values

Creates a DataSet object with X, Y and Z data (if given)

Parameters:
  • converter (DataConverter) – referance to converter for calculating screen coordinates for this DataSet
  • *args – data to be plotted; can be : - two 1D lists with X and Y - three 1D lists with X, Y and Z - a list of (X,Y) pairs or (X,Y,Z) triplets
Keyword Arguments (**kwargs)(**kwargs):
 

check for derived classes

Attributes Summary

colors Returns this DataSet colors
converter Returns this DataSet converter
kwargs Returns this DataSet kwargs dictionary
marker_size Returns this DataSet markersize
marker_style Returns this DataSet markerstyle
max_x Returns maximum of X data in screen coordinates
max_y Returns maximum of Y data in screen coordinates
max_z Returns maximum of Z data
min_x Returns minimum of X data in screen coordinates
min_y Returns minimum of Y data in screen coordinates
min_z Returns minimum of Z data
title Returns this DataSet title
x_data Returns list with X data in screen coordinates
y_data Returns list with Y data in screen coordinates
z_data Returns list with Z data as provided to this object

Methods Summary

draw(plot[, default_color])

Attributes Documentation

colors

Returns this DataSet colors

converter

Returns this DataSet converter

kwargs

Returns this DataSet kwargs dictionary

marker_size

Returns this DataSet markersize

marker_style

Returns this DataSet markerstyle

max_x

Returns maximum of X data in screen coordinates

max_y

Returns maximum of Y data in screen coordinates

max_z

Returns maximum of Z data

min_x

Returns minimum of X data in screen coordinates

min_y

Returns minimum of Y data in screen coordinates

min_z

Returns minimum of Z data

title

Returns this DataSet title

x_data

Returns list with X data in screen coordinates

y_data

Returns list with Y data in screen coordinates

z_data

Returns list with Z data as provided to this object

The returned list may be empty

Methods Documentation

draw(plot, default_color=0)