""" Bubble chart ============ """ # %% # The areas of cells can be determined by the `areas` argument. import plotly import ptvis elements = list(ptvis.Element) areas = list(range(len(elements))) fig = plotly.graph_objects.Figure() ptvis.attach_plain_cells(fig, elements, areas=areas) plotly.io.show(fig) # %% # It might be nice to # :ref:`change the cell shape # ` to # ``"circle"``. import plotly import ptvis elements = list(ptvis.Element) areas = list(range(len(elements))) fig = plotly.graph_objects.Figure() ptvis.attach_plain_cells(fig, elements, areas=areas, shape="circle") plotly.io.show(fig) # %% # By default, a cell with the maximum value of the `areas` argument has the # largest possible area. The value corresponding to the largest possible area # can be specified by the `area_max` argument. import plotly import ptvis elements = list(ptvis.Element) areas = list(range(len(elements))) fig = plotly.graph_objects.Figure() ptvis.attach_plain_cells(fig, elements, areas=areas, area_max=200) plotly.io.show(fig)