Table layoutΒΆ

The layout of the periodic table can be changed by the table_layout argument.

import plotly
import ptvis.layouts


elements = list(ptvis.Element) * 2

fig = plotly.graph_objects.Figure()
ptvis.attach_pie_cells(
    fig,
    elements,
    table_layout=ptvis.layouts.UnifiedTableLayout(),
)

plotly.io.show(fig)

See the tutorial on the table layout for details of each layout.

Gallery generated by Sphinx-Gallery