File: Scientific_37.html

package info (click to toggle)
python-scientific 2.2-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 1,368 kB
  • ctags: 2,396
  • sloc: python: 6,468; ansic: 3,643; xml: 3,596; makefile: 79; sh: 27
file content (62 lines) | stat: -rw-r--r-- 2,288 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<a name="Module:Scientific.Visualization.Color"><h1>Module Scientific.Visualization.Color</h1></a>

<p>This module provides color definitions that are used in the modules
VRML, VRML2, and VMD.
</p>

<hr width=70%>
<h2>Functions</h2>

<ul>
<li> <p>

<a name="Function:Scientific.Visualization.Color.ColorByName"><b><i>ColorByName</i></b>(<i>name</i>)</a><br>


</p>

<p>Returns a Color object corresponding to <i>name</i>. The known names
are black, white, grey, red, green, blue, yellow, magenta, cyan,
orange, violet, olive, and brown. Any color can be prefixed by
"light " or "dark " to yield a variant.
</p></ul>
<hr width=70%>
<a name="Class:Scientific.Visualization.Color.Color"><h2>Class Color: RGB Color specification</h2></a>

<p>Constructor: Color(<i>rgb</i>), where <i>rgb</i> is a sequence of three numbers
between zero and one, specifying the red, green, and blue intensities.</p>

<p>Color objects can be added and multiplied with scalars.
</p>

<hr width=70%>
<a name="Class:Scientific.Visualization.Color.ColorScale"><h2>Class ColorScale: Mapping of a number interval to a color range</h2></a>

<p>Constructor: ColorScale(<i>range</i>), where <i>range</i> can be a tuple of
two numbers (the center of the interval and its width), or a
single number specifying the widths for a default center of zero.</p>

<p>Evaluation: colorscale(<i>number</i>) returns the Color object
corresponding to <i>number</i>. If <i>number</i> is outside the
predefined interval, the closest extreme value of the interval
is used.</p>

<p>The color scale is blue - green - yellow - orange - red.
</p>

<hr width=70%>
<a name="Class:Scientific.Visualization.Color.SymmetricColorScale"><h2>Class SymmetricColorScale: Mapping of a symmetric number interval to a color range</h2></a>

<p>Constructor: SymmetricColorScale(<i>range</i>), where <i>range</i> is a
single number defining the interval, which is -|range| to <i>range</i>.</p>

<p>Evaluation: colorscale(<i>number</i>) returns the Color object
corresponding to <i>number</i>. If <i>number</i> is outside the
predefined interval, the closest extreme value of the interval
is used.</p>

<p>The colors are red for negative numbers and green for positive
numbers, with a color intensity proportional to the absolute
value of the argument.
</p>