BubblesDataSet

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

Bases: visualife.core.DataSet

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

Bubble chart displays three dimensions of data. Radius of each bubble is proportional to the square root of Z value of each point

Parameters:
  • converter (DataConverter) – referance to converter for calculating screen coordinates for this DataSet
  • *args – data to be plotted; see DataSet.__init__() documentation
Keyword Arguments (**kwargs)(**kwargs):
 
  • markersize (float) – a value used to scale radius of each bubbles
  • colors (list [ string ], list [ float ] or list [ 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 (float or color in HEX format ) - stroke color
  • stroke_width (float) - stroke width
  • title (string) - title of this data series; if not provided, the word “bubble chart” 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

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(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)