WLJS LogoWLJS Notebook

MoleculePlot3D

Create an interactive three-dimensional molecular model.

MoleculePlot3D[mol] creates a three-dimensional model of the molecule mol.

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

Examples

Display a molecule in three dimensions:

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

Highlight all oxygen atoms:

MoleculePlot3D[molecule, Atom["O"]]

Choose a molecular rendering style:

MoleculePlot3D[Molecule["caffeine"], PlotTheme -> "BallAndStick"]

See Molecule, MoleculePlot, and MoleculePattern.

Something isn't working? Report an issue.

Please visit the official Wolfram Language Reference for more details.

On this page