This file is indexed.

/usr/share/doc/pyxplot/html/sect0036.html is in pyxplot-doc 0.9.2-4.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  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
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta name="generator" content="plasTeX" />
<meta content="text/html; charset=utf-8" http-equiv="content-type" />
<title>PyXPlot Users' Guide: Instantiating objects</title>

<link href="sec-stringvars.html" title="Strings" rel="next" />
<link href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types" rel="prev" />
<link href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types" rel="up" />
<link rel="stylesheet" href="styles/styles.css" />
</head>
<body>

<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types"><img alt="Previous: Programming: Pyxplot’s data types" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types"><img alt="Up: Programming: Pyxplot’s data types" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sec-stringvars.html" title="Strings"><img alt="Next: Strings" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0288.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<div class="breadcrumbs">
<span>
<span>
<a href="index.html">PyXPlot Users' Guide</a> <b>:</b>
</span>

</span><span>
<span>
<a href="sect0001.html">Introduction to PyXPlot</a> <b>:</b>
</span>

</span><span>
<span>
<a href="chap-progDataTypes.html">Programming: Pyxplot’s data types</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">Instantiating objects</b>
</span>
</span>
<hr />
</div>

<div><h1 id="a0000000037">6.1 Instantiating objects</h1>
<p>A list of all of Pyxplot’s built-in object types can be found in the <tt class="tt">types</tt> module, which contains the <i class="it">object prototypes</i> for each type. Its contents are as follows: </p><p> <tt class="ttfamily">pyxplot&gt; <b class="bfseries">print types</b></tt><br /><tt class="ttfamily">module {</tt><br /><tt class="ttfamily">  boolean       : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: boolean<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  color         : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: color<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  date          : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: date<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  dictionary    : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: dictionary<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  exception     : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: exception<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  fileHandle    : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: fileHandle<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  function      : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: function<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  instance      : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: instance<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  list          : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: list<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  matrix        : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: matrix<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  module        : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: module<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  null          : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: null<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  number        : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: number<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  string        : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: string<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  type          : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: type<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily">  vector        : <img src="images/img-0046.png" alt="$&lt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" />data type: vector<img src="images/img-0035.png" alt="$&gt;$" style="vertical-align:0px; 
                                     width:12px; 
                                     height:11px" class="math gen" /></tt><br /><tt class="ttfamily"> }</tt>   </p><p>These object prototypes can be called like functions to produce an instance of each data type. Each prototype can take various different kinds of argument; for example, the <tt class="tt">number</tt> prototype can take a <tt class="tt">number</tt>, <tt class="tt">boolean</tt> or a <tt class="tt">string</tt> from which to create a number. For example: </p><p> <tt class="ttfamily">pyxplot&gt; <b class="bfseries">types.number()</b></tt><br /><tt class="ttfamily">0</tt><br /><tt class="ttfamily">pyxplot&gt; <b class="bfseries">types.number(true)</b></tt><br /><tt class="ttfamily">1</tt><br /><tt class="ttfamily">pyxplot&gt; <b class="bfseries">types.number(27)</b></tt><br /><tt class="ttfamily">27</tt><br /><tt class="ttfamily">pyxplot&gt; <b class="bfseries">types.number("1.2e39")</b></tt><br /><tt class="ttfamily">1.2e+39</tt>   </p><p>Full documentation of the types of inputs supported by each prototype are listed in the Reference Manual, in Section <a href="sec-functions_types.html">2.11</a>. </p><p>In many cases there are much more succinct ways of creating objects of each type. For example, lists can be creating by enclosing a comma-separated list of elements in square brackets: </p><p> <tt class="ttfamily">pyxplot&gt; <b class="bfseries">print [10,colors.green,"bottles"]</b></tt><br /><tt class="ttfamily">[10, cmyk(1,0,1,0), "bottles"]</tt>   </p><p>Dictionaries can be can be creating by enclosing key–value pairs in curly brackets: </p><p> <tt class="ttfamily">pyxplot&gt; <b class="bfseries">s = {"name":"Sophie", "nationality":"British"}</b></tt><br /><tt class="ttfamily">pyxplot&gt; <b class="bfseries">s["hometown"] = "Lode"</b></tt><br /><tt class="ttfamily">pyxplot&gt; <b class="bfseries">s["birthYear"] = 1957</b></tt>   </p></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types"><img alt="Previous: Programming: Pyxplot’s data types" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="chap-progDataTypes.html" title="Programming: Pyxplot’s data types"><img alt="Up: Programming: Pyxplot’s data types" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sec-stringvars.html" title="Strings"><img alt="Next: Strings" border="0" src="icons/next.gif" width="32" height="32" /></a></td>

<td class="navtitle" align="center">PyXPlot Users' Guide</td>
<td><a href="index.html" title="Table of Contents"><img border="0" alt="" src="icons/contents.gif" width="32" height="32" /></a></td>

<td><a href="sect0288.html" title="Index"><img border="0" alt="" src="icons/index.gif" width="32" height="32" /></a></td>

<td><img border="0" alt="" src="icons/blank.gif" width="32" height="32" /></td>
</tr>
</table>
</div>

<script language="javascript" src="icons/imgadjust.js" type="text/javascript"></script>

</body>
</html>