Spectrum states: Difference between revisions

From PyMOLWiki
Jump to navigation Jump to search
(link User:TakanoriNakane)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Infobox script-repo
{{Infobox script-repo
|type      = module
|type      = module
|filename  = spectrum_states.py
|filename  = scripts/spectrum_states.py
|author    = [[User:TakanoriNakane|Takanori Nakane]] and [[User:Speleo3|Thomas Holder]]
|author    = [[User:TakanoriNakane|Takanori Nakane]] and [[User:Speleo3|Thomas Holder]]
|license  = BSD-2-Clause
|license  = BSD-2-Clause
}}
{{Infobox psico
|module    =  psico.viewing
}}
}}



Latest revision as of 23:11, 22 June 2025

Type Python Module
Download scripts/spectrum_states.py
Author(s) Takanori Nakane and Thomas Holder
License BSD-2-Clause
This code has been put under version control in the project Pymol-script-repo

Included in psico
This command or function is available from psico, which is a PyMOL extension.

Module psico.viewing

spectrum_states colors each state in a multi-state object different. Colors are along a user defined palette, just like with the spectrumany command.

Usage

spectrum_states [ selection [, representations [, color_list ]]]

Example

import spectrum_states

# fetch a morph from molmovdb.org
load http://molmovdb.org/uploads/284066-6299/movie.pdb.gz

# show ribbon in all states
as ribbon
set all_states

# color states from dark gray to red
spectrum_states *, ribbon, gray20 orange red

See Also