MCPcopy Index your code
hub / github.com/bqplot/bqplot / __init__

Method __init__

bqplot/marks.py:1716–1732  ·  view source on GitHub ↗
(self, **kwargs)

Source from the content-addressed store, hash-verified

1714 null_color = Color('black', allow_none=True).tag(sync=True)
1715
1716 def __init__(self, **kwargs):
1717 data = kwargs['color']
1718 kwargs.setdefault('x', range(data.shape[1]))
1719 kwargs.setdefault('y', range(data.shape[0]))
1720 scales = kwargs.pop('scales', {})
1721 # Adding default x and y data if they are not passed.
1722 # Adding scales in case they are not passed too.
1723
1724 if scales.get('x', None) is None:
1725 x_scale = LinearScale()
1726 scales['x'] = x_scale
1727
1728 if scales.get('y', None) is None:
1729 y_scale = LinearScale()
1730 scales['y'] = y_scale
1731 kwargs['scales'] = scales
1732 super(HeatMap, self).__init__(**kwargs)
1733
1734 _view_name = Unicode('HeatMap').tag(sync=True)
1735 _model_name = Unicode('HeatMapModel').tag(sync=True)

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected