From: Vermaas, Joshua (
Date: Fri Jan 12 2018 - 13:10:25 CST

Hi Roshan,

The color map appears to involve some custom greyscaling code, based on the source of the plugin (plugins/contactmap/contactmap.tcl). If you overrode this (by editing contactmap.tcl, or sourcing a new one), it would do what you want. However, the most expedient way of getting a color image would be to use a colormap to colorize the greyscale image once it is produced. See for instance, which uses a computer vision library to recolor a greyscale image in three lines of code (you need to add a fourth to write an output file).


On 01/12/2018 11:49 AM, Roshan Shrestha wrote:
Dear all,
            Is there anyway we can get contact map from contact map plugin in VMD in Rainbow (RGB) scale rather than in Black and White color scale by default.

Roshan Shrestha
M.Sc (Physics)
Central Department of Physics, Tribhuvan University
Kathmandu, Nepal