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

Class GridHeatMap

bqplot/marks.py:1521–1666  ·  view source on GitHub ↗

GridHeatMap mark. Alignment: The tiles can be aligned so that the data matches either the start, the end or the midpoints of the tiles. This is controlled by the align attribute. Suppose the data passed is a m-by-n matrix. If the scale for the rows is Ordinal, then alignment is

Source from the content-addressed store, hash-verified

1519
1520@register_mark('bqplot.GridHeatMap')
1521class GridHeatMap(Mark):
1522
1523 """GridHeatMap mark.
1524
1525 Alignment: The tiles can be aligned so that the data matches either the
1526 start, the end or the midpoints of the tiles. This is controlled by the
1527 align attribute.
1528
1529 Suppose the data passed is a m-by-n matrix. If the scale for the rows is
1530 Ordinal, then alignment is by default the mid points. For a non-ordinal
1531 scale, the data cannot be aligned to the mid points of the rectangles.
1532
1533 If it is not ordinal, then two cases arise. If the number of rows passed
1534 is m, then align attribute can be used. If the number of rows passed
1535 is m+1, then the data are the boundaries of the m rectangles.
1536
1537 If rows and columns are not passed, and scales for them are also
1538 not passed, then ordinal scales are generated for the rows and columns.
1539
1540 Data Attributes
1541 ---------------
1542
1543 Attributes
1544 ----------
1545 color: numpy.ndarray or None (default: None)
1546 color of the data points (2d array). The number of elements in
1547 this array correspond to the number of cells created in the heatmap.
1548 row: numpy.ndarray or None (default: None)
1549 labels for the rows of the `color` array passed. The length of
1550 this can be no more than 1 away from the number of rows in `color`.
1551 This is a scaled attribute and can be used to affect the height of the
1552 cells as the entries of `row` can indicate the start or the end points
1553 of the cells. Refer to the property `row_align`.
1554 If this property is None, then a uniformly spaced grid is generated in
1555 the row direction.
1556 column: numpy.ndarray or None (default: None)
1557 labels for the columns of the `color` array passed. The length of
1558 this can be no more than 1 away from the number of columns in `color`
1559 This is a scaled attribute and can be used to affect the width of the
1560 cells as the entries of `column` can indicate the start or the
1561 end points of the cells. Refer to the property `column_align`.
1562 If this property is None, then a uniformly spaced grid is generated in
1563 the column direction.
1564
1565 Style Attributes
1566 ----------------
1567
1568 Attributes
1569 ----------
1570 row_align: Enum(['start', 'end'])
1571 This is only valid if the number of entries in `row` exactly match the
1572 number of rows in `color` and the `row_scale` is not `OrdinalScale`.
1573 `start` aligns the row values passed to be aligned with the start
1574 of the tiles and `end` aligns the row values to the end of the tiles.
1575 column_align: Enum(['start', end'])
1576 This is only valid if the number of entries in `column` exactly
1577 match the number of columns in `color` and the `column_scale` is
1578 not `OrdinalScale`. `start` aligns the column values passed to

Callers

nothing calls this directly

Calls 1

array_dimension_boundsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…