[chimerax-users] color submodels using a palette

Elaine Meng meng at cgl.ucsf.edu
Mon Feb 14 08:10:49 PST 2022


Hi Vincent,
With the "palette" option of the "color" (or "rainbow") command you can specify whatever colors you want.  Either the name of a palette, or any set of colors that you like, as described here:
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#sequential>
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#palette-options>
<https://rbvi.ucsf.edu/chimerax/docs/user/commands/colornames.html#builtin>

Example:

rainbow #1 structures palette blue:dodgerblue:lime:gold:coral

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 14, 2022, at 1:10 AM, vincent Chaptal via ChimeraX-users <chimerax-users at cgl.ucsf.edu> wrote:
> 
> Hi Elaine, 
> 
> thank you again for your help. 
> After playing around with it, I was wondering if there is a way to specify the beginning and end colors for the rainbow. I've tried several things that didn't work. 
> 
> Thank you
> Vincent
> 
> Le 10/02/2022 à 17:08, Elaine Meng a écrit :
>> Hi Vincent,
>> Sure, it's just the "rainbow" or "color sequential" command described here:
>> 
>> <https://rbvi.ucsf.edu/chimerax/docs/user/commands/color.html#sequential>
>> 
>> 
>> Examples:
>> 
>> rainbow #1 structures palette RdYlBu
>> color sequential #1 structures palette accent
>> 
>> I hope this helps,
>> Elaine
>> -----
>> Elaine C. Meng, Ph.D.                       
>> UCSF Chimera(X) team
>> Department of Pharmaceutical Chemistry
>> University of California, San Francisco




More information about the ChimeraX-users mailing list