Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

Visualization

atomode’s visualisers come in two complementary flavours:

A static PNG / MP4 / GIF exporter (plot_structure) and the matplotlib loss-history plot (plot_shell_relax) are also documented below.

At a glance

MethodOutputPurpose
cell.view_structure()Jupyter widget3D WebGL atom viewer. Polyhedra (triangles / tetrahedra / octahedra / cuboctahedra) drawn by default for recognised materials, with live sliders for radial + angular tolerance; bonds optional; perspective / orthographic toggle.
cell.plot_structure(output=...)MP4 / GIF / PNGRotating movie or static still for publication figures.
cell.export_trajectory_html(path)HTML filePlay back the shell-relaxation trajectory in 3D, colour-coded by per-atom spring energy; supports single- or multi-group polyhedra overlay (e.g. sp² triangles + sp³ tetrahedra in the same carbon cell).
atomode.export_overview_html(path, cells)HTML fileMultiple structures rendered side-by-side with synchronised rotation; same polyhedra_groups= support as the trajectory exporter.
cell.plot_shell_relax()matplotlib figureLoss-history plot from the last generate() or shell_relax() call.
cell.plot_g2()Jupyter widget (iframe)Single-cell g(r) viewer with species-pair dropdown + overlay-all-pairs mode.
cell.export_g2_html(path)HTML fileStandalone g(r) viewer with species-pair dropdown + overlay-all-pairs.
atomode.plot_g2_compare(cells)Jupyter widget (iframe)Overlaid g(r) from multiple supercells, stacked with inline per-series labels.
atomode.export_g2_compare_html(cells, path)HTML fileStandalone version of the compare viewer for docs embedding.
cell.plot_g3()Jupyter widgetBrowse the measured g3 as a 2D heatmap with a radial profile.
cell.plot_g3_compare()Jupyter widgetSide-by-side comparison of the supercell against a target.
cell.export_g3_html(path)HTML fileRdBu heatmap + pair profile g(r) of the measured g3 (single triplet or all-triplets grid).