Note
Go to the end to download the full example code.
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)
fig = plotly.graph_objects.Figure()
ptvis.attach_plain_cells(
fig,
elements,
table_layout=ptvis.layouts.UnifiedTableLayout(),
)
plotly.io.show(fig)
See the tutorial on the table layout for details of each layout.