« View all new features in Mathematica 9  previous  |  next 
New in Mathematica 9Legends

Legend Elements in a Molecule 

Add a legend to a 3D model of the molecules in caffeine.

In[1]:=
Click for copyable input
X
Out[237]=

Look up the elements in caffeine and create a legend that matches them with their iconic colors.

In[2]:=
Click for copyable input
X
Out[2]=

Add the element legend to the caffeine molecular plot.

In[3]:=
Click for copyable input
X
Out[241]=