set
command, using the comma ',' character as delimiter between the
specifications. As usual, the command is ended with a semi-colon ';':
set parameter-specification { , parameter-specification } ;
For example, to change the colour of lines to a reddish purple (using
an rgb specification):
To set the residue colours for amino-acids according to the B-factor
value (of the CA atom) from blue (low B-factor) to red (high), and
switch on colouring per residue in the schematic representations:
set linecolour rgb 1 0 0.2;
set residuecolour amino-acids b-factor 5 45 from blue to red,
colourparts on;
The push and pop commands have no
parameters, and must (as usual) be ended with a semi-colon ';':
push ;
pop ;
The push command creates a copy of the current graphics state, and pushes the copy onto the stack. Any number of state copies may be pushed onto the stack. The pop command removes the state copy off the top of the stack and sets it as the current state.
The graphics state stack is initially empty. It is an error to attempt a pop when the stack is empty. The stack is automatically cleared when the plot is finished.
Note: The parameters atomcolour, atomradius and residuecolour are currently not saved or restored by the push and pop commands.
In the second form of the command, the colour for each atom is determined by a linear interpolation in the given colour ramp based on the B-factor for the atom. The two numbers are the low and high B-factor values that correspond to the end-points of the given colour ramp.
Note: This parameter is not saved or restored by the push and pop commands.
Defaults:
atom C* grey 0.2, atom N* blue, atom O* red, atom H* white, atom
S* yellow, atom P* purple, others grey 0.8
Applies to:
cpk,
ball-and-stick,
bonds.
Used for: all output modes
See also:
colourparts
The atom radius may be set to exactly 0.0; such atoms are never output when cpk or ball-and-stick are used.
Note: This parameter is not saved or restored by the push and pop commands.
Defaults:
atom C* 1.7, atom N* 1.7, atom O* 1.35, atom H* 1.0, atom S*
1.8, atom P* 1.8, others 1.7
Required: >= 0.0
Applies to:
cpk,
ball-and-stick.
Used for: all output modes
Default: 1.9
Applies to:
bonds,
ball-and-stick.
Used for: all output modes
Default: 0.4
Required: >= 0.0
Applies to:
bonds
Used for: all output modes
Default: 0.2
Required: >= 0.0
Applies to:
coil,
double-helix,
helix,
turn
Used for: all output modes
When this parameter is off the colours are taken from the planecolour, plane2colour and linecolour parameters.
Default: off
Applies to:
ball-and-stick,
bonds,
coil,
double-helix
helix,
strand,
trace,
turn.
Used for: all output modes
Default: hsb
Used for: all output modes
Default: 2.3
Required: > 0.0
Applies to:
cylinder
Used for: all output modes
The default value is appropriate for line width and coil and turn radii, but probably too high for labels.
Default: 0.75
Required: >= 0.0, <= 1.0
Applies to:
line,
bonds,
label,
trace,
coil,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for:
PostScript only
Default: black (i.e. no emissive colour)
Applies to:
coil,
cylinder,
double-helix,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for:
VRML 2.0,
OpenGL
See also:
lightcolour,
specularcolour,
shininess,
lighting
Default: 0.3
Required: >= 0.0
Applies to:
helix
Used for:
Raster3D only
Default: 2.4
Applies to:
helix
Used for: all output modes
Default: off
Default: 0.0
Required: >= 0.0
Applies to:
label
Used for:
PostScript only
Default: on
Applies to:
label
Used for:
PostScript only
Default: off
Applies to:
label
Used for:
PostScript only
Default: "rrr..." (Roman characters),
" ..." (no change of character case)
Applies to:
label
Used for:
character case: all output modes; Greek/Roman:
PostScript only
Default: 0.0 0.0 0.0
Applies to:
label
Used for: all output modes
Default: off
Applies to:
label
Used for:
PostScript only
For non-PostScript output modes, the size value is mapped into something sensible, but may require modifications, and may also depend on the window size.
Default: 20.0
Required: >= 1.0
Applies to:
label
Used for: all output modes
Default: 0.0
Required: >= 0.0, <= 1.0
Applies to:
directionallight,
pointlight,
spotlight
Used for:
VRML 2.0,
OpenGL
See also:
lighting
attenuation = 1.0 / max (n1 + n2 * d + n3 * d2)
where n1, n2 and n3 are the three numbers given for the parameter, and
d is the distance (in Ångström) between the light source
and the surface.
Default: 1.0 0.0 0.0 (i.e. no attenuation)
Required: all components >= 0.0
Applies to:
pointlight,
spotlight
Used for:
VRML 2.0,
OpenGL
See also:
lighting
For the OpenGL output mode, both the specular and the diffuse component of the light source are set to the given colour. In the VRML 2.0 output mode, there is no distinction between these two.
Default: white
Applies to:
directionallight,
pointlight,
spotlight
Used for:
Raster3D,
VRML 2.0,
OpenGL
See also:
emissivecolour,
specularcolour,
shininess,
lighting
Default: 1.0
Required: >= 0.0, <= 1.0
Applies to:
directionallight,
pointlight,
spotlight
Used for:
VRML 2.0,
OpenGL
See also:
lighting
Default: 100.0
Required: > 0.0
Applies to:
pointlight,
spotlight
Used for:
Raster3D,
VRML 2.0
See also:
lighting
In PostScript mode, the lines at the edges of planes (in several different kinds of output segments) and spheres are also affected.
Default:
black for
PostScript,
white for
Raster3D,
VRML 2.0,
OpenGL
Applies to:
line,
bonds,
label,
trace,
coil,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for: all output modes
For non-PostScript output modes, the value is mapped into something sensible, but may require modifications, and may also depend on the window size.
Default: 0.0
Required: >= 0.0
Applies to:
line,
bonds,
trace,
coil,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for:
PostScript,
Raster3D,
OpenGL
For non-PostScript output modes, the value is mapped into something sensible, but may require modifications, and may also depend on the window size.
Default: 1.0
Required: >= 0.0
Applies to:
line,
bonds,
trace,
coil,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for:
PostScript,
Raster3D,
OpenGL
Default: on
Applies to:
object
Used for: all output modes
This parameter is used if the colourparts parameter is switched off, otherwise the residuecolour and atomcolour parameters are used.
Default: white
Applies to:
coil,
turn,
helix,
strand,
ball-and-stick,
double-helix
Used for: all output modes
See also:
colourparts
This parameter is used if the colourparts parameter is switched off, otherwise the residuecolour and atomcolour parameters are used.
Default: grey 0.5
Applies to:
helix,
strand
Used for: all output modes
See also:
colourparts
Default: off
Used for: all output modes
See also:
name comparisons
In the second form of the command, the colour for each residue is determined by a linear interpolation in the given colour ramp based on the B-factor for the residue. If the residue is an amino-acid (according the the residue type), then its B-factor is taken to be the B-factor for the CA atom, otherwise an average of the B-factors for all atoms in the residue is used. The two numbers are the low and high B-factor values that correspond to the end-points of the given colour ramp.
In the third form of the command, the selected residues are coloured in linear fashion in the order they appeared in the coordinate file, along the given colour ramp.
Note: This parameter is not saved or restored by the push and pop commands.
Default: white
Applies to:
coil,
turn,
helix,
strand,
double-helix
Used for: all output modes
See also:
colourparts
The subdivision of the cylinder object is also controlled by this parameter.
In the OpenGL output mode, this parameter controls the tesselation of spheres used by the cpk and ball-and-stick commands.
Default:
6 for
PostScript,
Raster3D,
3 for
VRML 2.0,
OpenGL
Applies to:
coil,
turn,
helix,
strand,
cylinder
Used for: all output modes
Default: 2.0
Required: > 0.0
Applies to:
line,
cylinder,
object
Used for:
PostScript only
A value of 0.0 disables shading, while a value of 1.0 makes plane segments whose normals are nearly parallel to the paper completely black. When plotting large proteins, it may be a good idea to switch off shading altogether; this reduces the apparent clutter of the image.
Default: 0.5
Required: >= 0.0, <= 1.0
Applies to:
coil,
turn,
helix,
strand
double-helix,
cylinder,
object
Used for:
PostScript only
See also: shadingexponent
A large exponent makes the shading strong already at a small angle between the viewer and plane segment normal vector, while a small exponent makes the shading appear only at a large angle.
Default: 1.5
Required: >= 0.0
Applies to:
coil,
turn,
helix,
strand
double-helix,
cylinder,
object
Used for:
PostScript only
See also: shading
Default: 0.2
Required: >= 0.0, <= 1.0
Applies to:
coil,
turn,
helix,
strand,
double-helix,
cylinder,
object
Used for:
Raster3D,
VRML 2.0,
OpenGL
See also:
emissivecolour,
lightcolour,
specularcolour,
lighting
The higher the value is, the smoother is the path of the coil or strand. The coil command would be the same as the turn command if this parameter were to have the value 0.
Default: 2
Required: >= 1
Applies to:
coil,
strand
Used for: all output modes
This parameter together with shininess, emissivecolour and the inherent colour of the object (planecolour, atomcolour and so on) determine the surface properties when lit.
Default:
black (i.e. no specular colour) for
VRML 2.0,
OpenGL,
white for
Raster3D
Applies to:
coil,
cylinder,
double-helix,
turn,
helix,
strand,
cpk,
ball-and-stick
Used for:
Raster3D,
VRML 2.0,
OpenGL
See also:
emissivecolour,
lightcolour,
shininess,
lighting
Default: 1.0
Required: >= 0.01
Applies to:
coil,
turn,
strand
Used for: all output modes
Default: 0.2
Required: > 0.0
Applies to:
ball-and-stick
Used for: all output modes
Default: 0.75
Required: >= 0.0, <= 1.0
Applies to:
ball-and-stick
Used for:
PostScript only
Default: 0.6
Required: >= 0.0
Applies to:
strand
Used for: all output modes
Default: 2.0
Required: >= 0.02
Applies to:
strand
Used for: all output modes
The quality of the transparency rendering is strongly dependent on the output mode. For VRML 2.0 the quality depends strongly on the browser used to display the output file. This parameter is currently not implemented for PostScript.
Default: 0.0
Required: >= 0.0, <= 1.0
Applies to: all graphics objects
Used for:
Raster3D,
VRML 2.0,
OpenGL