Eigenstate / vmd-python

Installable VMD as a python module
Other
129 stars 24 forks source link

add label and specific color for some resid #32

Open huangziyan11111 opened 4 years ago

huangziyan11111 commented 4 years ago

Hi, I'd like to emphasize one residue caused by mutation, like the red frame on the right side of this picture. image assuming we have a mutation on resid 11. I add the label by this code: "label.add('Atoms',[0],[11])". It showed like the following picture, I am confused why the label is "LEU9:C" because the specific number of resid is 11. On the other hand, Can I add self-defined text label? image

The other question is about the color, how can I change the color of specific resid? and this change can be rendered out as file "*dat".

Could you help me about these questions about label and color? Thank you.

jvermaas commented 4 years ago

There are certain things that are going to be MUCH easier with a standard installation of VMD, and this is one of them, since you get immediate visual feedback. In terms of adding a label, what most folks do is add them in post-processing, since VMD's labeling is butt-ugly.