/usr/share/doc/pyxplot/html/ex-noentry.html is in pyxplot-doc 0.8.4-3.
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 | <!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 box and circle Commands</title>
<link href="ex-lens.html" title="The arc Command" rel="next" />
<link href="sect0073.html" title="The eps Command" rel="prev" />
<link href="sect0070.html" title="Adding Other Vector Graphics Objects" 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="sect0073.html" title="The eps Command"><img alt="Previous: The eps Command" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0070.html" title="Adding Other Vector Graphics Objects"><img alt="Up: Adding Other Vector Graphics Objects" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="ex-lens.html" title="The arc Command"><img alt="Next: The arc 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="sect0255.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="sect0043.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>
<a href="sect0070.html">Adding Other Vector Graphics Objects</a> <b>:</b>
</span>
</span><span>
<span>
<b class="current">The <tt class="tt">box</tt> and <tt class="tt">circle</tt> Commands</b>
</span>
</span>
<hr />
</div>
<div><h2 id="ex:noentry">3.4.5 The <tt class="tt">box</tt> and <tt class="tt">circle</tt> Commands</h2>
<p>Rectangular boxes and circles may be placed on multiplot canvases using the <tt class="tt">box</tt> and <tt class="tt">circle</tt> commands<a name="a0000000960" id="a0000000960"></a><a name="a0000000961" id="a0000000961"></a>, as in: </p><pre>
box from 0*unit(mm),0*unit(mm) to 25*unit(mm),70*unit(mm)
circle at 0*unit(mm),0*unit(mm) radius 70*unit(mm)
</pre><p>In the former case, two corners of the rectangle are specified, meanwhile in the latter case the centre of the circle and its radius are specified. The <tt class="tt">box</tt> command<a name="a0000000962" id="a0000000962"></a> may also be invoked by the synonym <tt class="tt">rectangle</tt><a name="a0000000963" id="a0000000963"></a>. Boxes may be rotated using an optional <tt class="tt">rotate</tt> modifier, which may be followed by a counter-clockwise rotational angle which may either have dimensions of angle, or is assumed to be in degrees if dimensionless. The rotation is performed about the centre of the rectangle: </p><pre>
box from 0,0 to 10,3 rotate 45
</pre><p>The positions and dimensions of boxes may also be specified by giving the position of one of the corners of the box, together with its width and height. The specified corner is assumed to be the bottom-left corner if both the specified width and height are positive; other corners may be specified if the supplied width and/or height are negative. If such boxes are rotated, the rotation is about the specified corner: </p><pre>
box at 0,0 width 10 height 3 rotate 45
</pre><p>The line type, line width, and colour of line with which the outlines of boxes and circles are drawn may be specified as in the <tt class="tt">arrow</tt> command, for example: </p><pre>
circle at 0,0 radius 5 with linetype 1 linewidth 2 colour red
</pre><p>The shapes may be filled by specifying a <tt class="tt">fillcolour</tt>: </p><pre>
circle at 0,0 radius 5 with lw 10 colour red fillcolour yellow
</pre><p> <span class="upshape"><span class="mdseries"><span class="rm">A simple no-entry sign.</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 example script, we use PyXPlot’s <tt class="tt">box</tt> and <tt class="tt">circle</tt> commands to produce a no-entry sign warning passers by that code monkeys can turn nasty when interrupted from their work. </p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="tt">set multiplot ; set nodisplay</tt><br /><tt class="tt"></tt><br /><tt class="tt">w = 10 # Width of sign / cm</tt><br /></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="tt"># Make no-entry sign</tt><br /><tt class="tt">circle at 0,0 radius w with col null fillcol red</tt><br /><tt class="tt">box from -(0.8*w),-(0.2*w) to (0.8*w),(0.2*w) <img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" /></tt><br /><tt class="tt">with col null fillcol white</tt><br /></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="tt"># Put a warning beneath the sign</tt><br /><tt class="tt">set fontsize 3</tt><br /><tt class="tt">set texthalign centre ; set textvalign centre</tt><br /><tt class="tt">text "<img src="images/img-0006.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />bf Keep Out! Code Monkey at work!"</tt><br /></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="tt"># Display sign</tt><br /><tt class="tt">set display ; refresh</tt><br /></p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"> </td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p>The resulting sign is shown below: </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-0580.png" alt="\includegraphics[width=5cm]{examples/eps/ex_noentry}" style="width:5cm" /></center> </p></td>
</tr>
</table>
</div></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0073.html" title="The eps Command"><img alt="Previous: The eps Command" border="0" src="icons/previous.gif" width="32" height="32" /></a></td>
<td><a href="sect0070.html" title="Adding Other Vector Graphics Objects"><img alt="Up: Adding Other Vector Graphics Objects" border="0" src="icons/up.gif" width="32" height="32" /></a></td>
<td><a href="ex-lens.html" title="The arc Command"><img alt="Next: The arc 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="sect0255.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>
|