ptvis.components.make_plain_cells¶
- ptvis.components.make_plain_cells(xs, ys, widths, heights, texts=None, colors=None, shape='square')[source]¶
Make plain cells.
- Parameters:
xs (array-like of
float) – X coordinates of centers of cells.ys (array-like of
float) – Y coordinates of centers of cells.widths (array-like of
float) – Widths of cells.heights (array-like of
float) – Heights of cells.texts (array-like of
str, optional) – Texts of cells.colors (array-like of
str, optional) – Fill colors of cells.shape (
{'circle', 'square'}, optional) – Shape of a cell.
- Returns:
shapes (
listofplotly.graph_objects.layout.Shape) – Shape objects for cells.text_scatter (
plotly.graph_objects.Scatter) – Scatter object for texts.