This is a read-only mirror of pymolwiki.org

Difference between revisions of "Spectrumany"

From PyMOL Wiki
Jump to navigation Jump to search
m (10 revisions)
 
(One intermediate revision by one other user not shown)
Line 4: Line 4:
 
|author    = [[User:Speleo3|Thomas Holder]]
 
|author    = [[User:Speleo3|Thomas Holder]]
 
|license  = BSD-2-Clause
 
|license  = BSD-2-Clause
 +
}}
 +
 +
{{Infobox psico
 +
|module    =  psico.viewing
 
}}
 
}}
  

Latest revision as of 03:55, 28 March 2014

Type Python Module
Download 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
This command or function is available from psico, which is a PyMOL extension.

Module psico.viewing
Coloring with a gradient of different green shades

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