WLJS LogoWLJS Notebook

MoleculePlot

Create a two-dimensional molecular structure diagram.

MoleculePlot[mol] creates a two-dimensional structure diagram of the molecule mol.

MoleculePlot[mol, patt] highlights the atoms and bonds that match patt.

Examples

Draw a molecule:

molecule = Molecule["NC(=O)C[C@H](C(=O)O)N"];
MoleculePlot[molecule]

Highlight two atoms by index:

MoleculePlot[molecule, {3, 8}]

Highlight every carbonyl bond:

MoleculePlot[molecule, Bond[{"C", "O"}, "Double"]]

For a reusable multi-atom query, pass a MoleculePattern as the second argument.

See Molecule, Bond, and MoleculePlot3D.

Something isn't working? Report an issue.

Please visit the official Wolfram Language Reference for more details.

On this page