[chimerax-users] right mouse zone selection labels
Tom Goddard
goddard at sonic.net
Fri Oct 9 10:38:37 PDT 2020
Hi Sarah,
Currently there is no setting to adjust the zone mouse mode label colors and text. You could edit the ChimeraX Python code to change the label colors, that is in
ChimeraX.app/Contents/lib/python3.7/site-packages/chimerax/zone/zone.py
You would change lines
self._label_color = BuiltinColors['yellow']
self._label_background = BuiltinColors['black']
to the colors you want ('black' and 'white'). There is also no setting for the label text to show chain ID, one letter residue code, and residue number, it only shows 3-letter residue code and residue number. Even the ChimeraX label command has no setting to adjust this yet. Our older program Chimera has a labelopt command that allowed setting the text in the label
https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html <https://www.cgl.ucsf.edu/chimera/current/docs/UsersGuide/midas/labelopt.html>
and we should add something similar in ChimeraX. I've made an enhancement request to allow setting the default colors and text.
https://plato.cgl.ucsf.edu/trac/ChimeraX/ticket/3813
You are right that the preference setting Labels / Balloon-help Specifier Style will not effect what the Zone mouse mode labels show.
Tom
> On Oct 8, 2020, at 9:00 PM, Sarah Piper <sarahjpiper89 at gmail.com> wrote:
>
> HI ChimeraX team,
> I really like the feature in ChimeraX that creates a map clipping zone in the right mouse tools - zone with automatic labelling. However, the default labels are black background and yellow text, and only the residue 3 letter code and number. Is it possible to change these labels to a white bg and customise the labels to include e.g. the one letter code and chain ID? I tried to do this with the selection - labels tool but it did not seem to change it for the zone labels.
>
> Many thanks and keep up the great work :)
>
> Sarah
>
>
>
> _______________________________________________
> ChimeraX-users mailing list
> ChimeraX-users at cgl.ucsf.edu
> Manage subscription:
> https://www.rbvi.ucsf.edu/mailman/listinfo/chimerax-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://plato.cgl.ucsf.edu/pipermail/chimerax-users/attachments/20201009/e4cf214e/attachment-0001.html>
More information about the ChimeraX-users
mailing list