How to color bonds by the strain? I need to create a figure of a molecule in which the bonds are colored in a RGB scale according to the values read from a data file. The data file contains, for example, the increase or decrease in the bond length compared to some reference structure. In this way, the intensity in a color range red-white-blue would be given by the difference between the relaxed and unrelaxed bond lengths, similarly to the figure attached. 

I have tried to make this figure using jmol, but I didn't have success so far. Could anyone suggest a program that is able to do such figure? Or could someone point out any suggestion of how to do this color maps on chemical bonds?



I will be grateful for any help you can provide.

All the best
StrainViz is the program that might be useful [1].

Reference


Colwell, C. E.; Price, T. W.; Stauch, T.; Jasti, R. Strain Visualization for Strained Macrocycles. Chem. Sci. 2020, 11 (15), 3923–3930. DOI: 10.1039/D0SC00629G.