plot molecule in 3D
list of lists; each list has 4 elements, the string of an atom's symbol and atom's x, y, and z coordinates
(optional) equation(s) of the form option = value
PlotMolecule(molecule, options) returns a 3D Maple plot of the molecules. The molecule can be fully rotated.
The options available are model, units, bonds, addbonds, removebonds, numberatoms, and viewpoint.
The value of model is either the string "ballandstick" (default) or "spacefilling".
The value of units is either the string "Angstrom" (default) or "Bohr".
The value of bonds can be a set of sets where each set contains two integers denoting the atoms to be connected by a chemical bond. The integers correspond to the positions of the atoms in molecule. If the optional keyword bonds is not set, the bonds to be shown are determined automatically.
Automatic bonds can also be modified with addbonds and/or removebonds. The keywords addbonds and removebonds can be a set of sets where each set contains two integers denoting atoms between which a chemical bond should be added or removed, respectively.
The keyword viewpoint generates a molecular fly-through animation. It can be set to one of the following strings "flythrough", "flythrough2", "flythrough3", "flythrough4", "circleleft", and "circleright". It can also be set to a custom fly-through animation as described on the help page for viewpoint.
Define the molecule hydrogen fluoride
molecule ≔ H, 0, 0, −0.55, F, 0, 0, +0.55 ;
Plot the molecule hydrogen fluoride
Define the molecule TNT from MolecularData which obtains the geometry from a web database
Plot the molecule
Define the molecule tylenol from MolecularData which obtains the geometry from a web database
molecule,bonding ≔ MolecularDatatylenol,geometry3d, returnbonds=true;
Number the atoms in tylenol
Remove the bond between atoms 3 and 4
Use the viewpoint keyword to make a fly-though animation for TNT
Download Help Document