Dear Jmol team,

I am trying to make a figure of a molecule in which the bonds are colored
by a RGB scale according to the values read from a data file. I have done
something similar to this idea in the case of coloring atoms by the value
of partial charges:

x = load("charges.dat")
set propertydatafield 1
data "property_partialcharge @x"
{y>0}.label = load("charges.dat").split()
color property_partialcharge "bwr" range 0.7 1.3
write IMAGE PNG "color_by_charges.png"

It worked pretty well in this case but I couldn't find a way to update my
script for the case of coloring bonds. I tried to use the "
property_bond_lengths" but it seems to have the same effect as in the
partialcharge. Is there a way to do such color maps of bonds in jmol? If
yes, could somebody, please, give me a suggestion of how to do that?

I will be grateful for any help you can provide.

All the best,

Max Pinheiro Jr
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________
Jmol-users mailing list
Jmol-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jmol-users

Reply via email to