[chimerax-users] Show palette range scale

Elaine Meng meng at cgl.ucsf.edu
Wed Feb 8 15:33:36 PST 2023


Hi Andrea,
See the "key" option of the "color byattribute" command:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#byattribute>

See the third example in the coloring by conservation tutorial.  The image with the color key is at the bottom of the page:
<https://www.rbvi.ucsf.edu/chimerax/data/conservation-coloring/conservation-coloring.html#omp>

The "key true" option of "color attribute" starts the Color Key tool to allow drawing a color key showing what colors you used.  It will show a key right away but then you can use the mouse to change the size and position of the color bar.
<https://rbvi.ucsf.edu/chimerax/docs/user/tools/colorkey.html>

If when you did the coloring you were using the Render by Attribute tool instead of the command "color byattribute", look in the Log to see the command it makes when you use the tool.  Then you can just use the same "color byattribute" command as shown in the Log, except also add "key true" at the end of it.

There is also a separate "key" command, but then you would have to specify the colors/values again:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/key.html>

I hope this helps,
Elaine
-----
Elaine C. Meng, Ph.D.                       
UCSF Chimera(X) team
Department of Pharmaceutical Chemistry
University of California, San Francisco

> On Feb 8, 2023, at 3:21 PM, Gomez Barillas, Andrea via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Dear ChimeraX developers,
> 
> I've mapped sequence conservation into my protein structure by defining a specific attribute and I colored it using a specific palette. 
> I was wondering how I can show in my model the scale of colors for the range I've stablished in my map. Maybe there is a command 
> I can use to show the range I used for mapping and what the colors represent.
> 
> Thank you for your help,
> Andrea



More information about the ChimeraX-users mailing list