This file is indexed.

/usr/share/doc/pyxplot/html/ex-polygon2.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
153
154
155
156
157
158
159
160
161
162
163
164
165
166
<!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: The polygon command</title>

<link href="sect0086.html" title="The image command" rel="next" />
<link href="sect0085.html" title="The replot command revisited" rel="prev" />
<link href="ch-vector_graphics.html" title="Producing vector graphics" 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="sect0085.html" title="The replot command revisited"><img alt="Previous: The replot command revisited" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Up: Producing vector graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0086.html" title="The image command"><img alt="Next: The image command" 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="sect0056.html">Plotting and Vector Graphics</a> <b>:</b>
</span>

</span><span>
<span>
<a href="ch-vector_graphics.html">Producing vector graphics</a> <b>:</b>
</span>

</span><span>

<span>
<b class="current">The <tt class="tt">polygon</tt> command</b>
</span>
</span>
<hr />
</div>

<div><h1 id="ex:polygon2">3.7 The <tt class="tt">polygon</tt> command</h1>
<p> <span class="upshape"><span class="mdseries"><span class="rm">A simple polygon.</span></span></span></p><div>

<table cellspacing="0" class="tabular">
<tr>

    
    <td style="border-top-style:solid; border-left:1px solid black; border-right:1px solid black; border-top-color:black; border-top-width:1px; text-align:left"><p> In this simple example, we use Pyxplot’s <tt class="tt">polygon</tt> command to generate a geometric shape from a list of points. </p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">points = [ [0,-1], [0, 1], [2, 2], [2,1], [8,1], <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px; 
                                     width:7px; 
                                     height:18px" class="math gen" /></tt><br /><tt class="ttfamily">           [8,-1], [2,-1], [2,-2]]</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">polygon points with fillcol gray50 col black</tt> </p></td>

</tr><tr>

    
    <td style="border-bottom-style:solid; border-bottom-width:1px; border-left:1px solid black; border-right:1px solid black; text-align:left; border-bottom-color:black"><p><center>
<img src="images/img-0574.png" alt="\includegraphics[width=8cm]{examples/eps/ex_polygon1}" style="width:8cm" /></center>  </p></td>

</tr>
</table>
</div><p> <span class="upshape"><span class="mdseries"><span class="rm">The first eight regular polygons.</span></span></span></p><div>

<table cellspacing="0" class="tabular">
<tr>

    
    <td style="border-top-style:solid; border-left:1px solid black; border-right:1px solid black; border-top-color:black; border-top-width:1px; text-align:left"><p> This example uses Pyxplot’s flow control commands, together with its list methods and the <tt class="tt">polygon</tt> command, to generate a diagram of the first eight regular polygons. </p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">rotate(a) = matrix( [cos(a), -sin(a)], <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px; 
                                     width:7px; 
                                     height:18px" class="math gen" /></tt><br /><tt class="ttfamily">                    [sin(a),  cos(a)] )</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">subroutine makePolygon(Nsides, centre)</tt><br /><tt class="ttfamily"> {</tt><br /><tt class="ttfamily">  points = []</tt><br /><tt class="ttfamily">  for i=0 to Nsides</tt><br /><tt class="ttfamily">   {</tt><br /><tt class="ttfamily">    call points.append(centre + <img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px; 
                                     width:7px; 
                                     height:18px" class="math gen" /></tt><br /><tt class="ttfamily">       rotate(i/Nsides*unit(rev)) * vector(1,0))</tt><br /><tt class="ttfamily">   }</tt><br /><tt class="ttfamily">  polygon points with fillcol gray50 col black</tt><br /><tt class="ttfamily"> }</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">set nodisplay ; set multiplot</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">set texthalign center</tt><br /><tt class="ttfamily">set textvalign top</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">foreach datum x,y,Nsides,name in "–"</tt><br /><tt class="ttfamily"> {</tt><br /><tt class="ttfamily">  call makePolygon(Nsides,vector(x,y))</tt><br /><tt class="ttfamily">  text name at x,y-1.25</tt><br /><tt class="ttfamily"> }</tt><br /><tt class="ttfamily">0 0 3 Triangle</tt><br /><tt class="ttfamily">3 0 4 Square</tt><br /><tt class="ttfamily">6 0 5 Pentagon</tt><br /><tt class="ttfamily">0 4 6 Hexagon</tt><br /><tt class="ttfamily">3 4 7 Heptagon</tt><br /><tt class="ttfamily">6 4 8 Octagon</tt><br /><tt class="ttfamily">END</tt><br /></p></td>

</tr><tr>

    
    <td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">set display ; refresh</tt> </p></td>

</tr><tr>

    
    <td style="border-bottom-style:solid; border-bottom-width:1px; border-left:1px solid black; border-right:1px solid black; text-align:left; border-bottom-color:black"><p><center>
<img src="images/img-0577.png" alt="\includegraphics[width=8cm]{examples/eps/ex_polygon2}" style="width:8cm" /></center>  </p></td>

</tr>
</table>
</div></div>





<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0085.html" title="The replot command revisited"><img alt="Previous: The replot command revisited" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>

<td><a href="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Up: Producing vector graphics" border="0" src="icons/up.gif" width="32" height="32" /></a></td>

<td><a href="sect0086.html" title="The image command"><img alt="Next: The image command" 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>