Unified layout

The ptvis.layouts.UnifiedTableLayout class defines a layout of the periodic table whose f-block is not separated from the others.

import plotly
import ptvis.layouts


elements = list(ptvis.Element)

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

plotly.io.show(fig)

Padding around the periodic table

A padding around the periodic table can be changed by the padding argument.

import plotly
import ptvis.layouts


elements = list(ptvis.Element)

fig = plotly.graph_objects.Figure()
ptvis.attach_plain_cells(
    fig,
    elements,
    table_layout=ptvis.layouts.UnifiedTableLayout(padding=0.5),
)

plotly.io.show(fig)

Gallery generated by Sphinx-Gallery