Spectrumany: Difference between revisions
		
		
		
		
		
		Jump to navigation
		Jump to search
		
				
		
		
	
|  (use Infobox script-repo, drop script) | PedroLacerda (talk | contribs)  No edit summary | ||
| (2 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| {{Infobox script-repo | {{Infobox script-repo | ||
| |type      = module | |type      = module | ||
| |filename  = spectrumany.py | |filename  = scripts/spectrumany.py | ||
| |author    = [[User:Speleo3|Thomas Holder]] | |author    = [[User:Speleo3|Thomas Holder]] | ||
| |license   = BSD-2-Clause | |license   = BSD-2-Clause | ||
| }} | |||
| {{Infobox psico | |||
| |module    =  psico.viewing | |||
| }} | }} | ||
| Line 27: | Line 31: | ||
| [[Category:Script_Library]] | [[Category:Script_Library]] | ||
| [[Category:Coloring]] | [[Category:Coloring]] | ||
| [[Category:Pymol-script-repo]] | |||
Latest revision as of 23:12, 22 June 2025
| Type | Python Module | 
|---|---|
| Download | scripts/spectrumany.py | 
| Author(s) | Thomas Holder | 
| License | BSD-2-Clause | 
| This code has been put under version control in the project Pymol-script-repo | |
| Included in psico | |
| Module | psico.viewing | 
|---|---|
This script works similar to the spectrum command, but instead of predefined palettes, any color sequence can be used.
The color sequence is given by a space separated list of colors, so palette "red_white_blue" is the same as color sequence "red white blue".
Example
fetch 2x19
# these two produce the same result
spectrum count, red_white_blue, chain B
spectrumany count, red white blue, chain B
# gradient of different green colors
spectrumany count, smudge palegreen limegreen limon green forest, chain B
