DataSet¶
-
class
visualife.core.DataSet(converter, *args, **kwargs)¶ Bases:
objectStores 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
colorsReturns this DataSet colors converterReturns this DataSet converter kwargsReturns this DataSet kwargs dictionary marker_sizeReturns this DataSet markersize marker_styleReturns this DataSet markerstyle max_xReturns maximum of X data in screen coordinates max_yReturns maximum of Y data in screen coordinates max_zReturns maximum of Z data min_xReturns minimum of X data in screen coordinates min_yReturns minimum of Y data in screen coordinates min_zReturns minimum of Z data titleReturns this DataSet title x_dataReturns list with X data in screen coordinates y_dataReturns list with Y data in screen coordinates z_dataReturns 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)¶
- converter (