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
radii = [1]*len(ptvis.Element) + [2]*len(ptvis.Element)

fig = plotly.graph_objects.Figure()
ptvis.attach_polar_bar_cells(
    fig,
    elements,
    radii,
    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