Jmol with coloured isosurface

Jmol can colour an (iso)surface based on some other value. In this example the van der Waals surface is coloured by the potential, but many other combinations are possible.

The commands are typed at the Jmol console prompt, and the example data file is available as caffeine_pot.cube.gz, which Jmol can read in its compressed form.

$ load "caffeine_pot.cube.gz"

Jmol with caffeine

$ isosurface s1 solvent 0 map "caffeine_pot.cube.gz"
reading isosurface data from caffeine_pot.cube.gz
s1 created  with cutoff=0.0; isosurface count: 1
isosurface full data range -7.4716644 to -2.2773418 with color scheme spanning -7.4716644 to -2.2773418

Jmol with caffeine van der Waals surface coloured by potential

It does not seem to be possible to get Jmol to include a colour key, but at least it does report the range to its console, and it autoscales sensibly.