LineDataSet¶
-
class
visualife.core.LineDataSet(converter, *args, **kwargs)¶ Bases:
visualife.core.DataSetStores data for lineplot
Creates a LineDataSet 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):- colors (
list[string],list[float] orlist[ color in HEX format ]) – define fill color for points; the colors are cycled over for all points, so if the list contains a single elements, all points will have the same fill color - stroke (
floator color in HEX format ) - stroke color - width (
float) - stroke width - title (
string) - title of this data series; if not provided, the word “line” will be used - converter_type (
string) - converter type to calculate axis range - may be “primary” (bottom and left axis) or “secondary” (upper and rigth axis)
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(viewport[, 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(viewport, default_color=0)¶
- converter (