From: John Stone (
Date: Tue Dec 04 2007 - 18:03:05 CST

  There are some examples in the VMD User's Guide that show how to
set the color scale to anything you like using the Tcl interface.
I've also attached a simple example script that does one possible
implementation. You can use any equation you want to define your
colors, including a completely manual color mapping if you wanted to.

  John Stone

On Tue, Dec 04, 2007 at 12:41:36PM +0100, Xavier Cartoixa Soler wrote:
> Hi,
> I use VMD to visualize wavefunctions from .cube files that I generate
> with a homemade electronic structure program.
> I know that VMD has a few predefined coloring schemes for volumetric
> data (eg RGB. BGR, BlkW, etc.), and I even modify them from time to time
> by editing a previously saved state file.
> However, these color schemes only allow the definition of three color
> points: beginning, midpoint, end; but I would like to apply a rainbow
> scheme to my data, similar to the default gradient in gnuplot under
> pm3d. Is there any way to do it? If not, would the developers consider
> allowing for more than one user-definable color midpoints in future
> releases?
> Thanks!
> Xavier

NIH Resource for Macromolecular Modeling and Bioinformatics
Beckman Institute for Advanced Science and Technology
University of Illinois, 405 N. Mathews Ave, Urbana, IL 61801
Email:                 Phone: 217-244-3349
  WWW:      Fax: 217-244-6078