/usr/share/doc/pyxplot/html/ex-notice.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 | <!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 arrow and line commands</title>
<link href="sect0081.html" title="Editing items on the canvas" rel="next" />
<link href="sect0080.html" title="The text command" 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="sect0080.html" title="The text command"><img alt="Previous: The text command" 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="sect0081.html" title="Editing items on the canvas"><img alt="Next: Editing items on the canvas" 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">arrow</tt> and <tt class="tt">line</tt> commands</b>
</span>
</span>
<hr />
</div>
<div><h1 id="ex:notice">3.4 The <tt class="tt">arrow</tt> and <tt class="tt">line</tt> commands</h1>
<p>Arrows may also be added to multiplot canvases using the <tt class="tt">arrow</tt> command<a name="a0000000968" id="a0000000968"></a>, which has syntax: </p><pre>
arrow from x,y to x,y
</pre><p>The <tt class="tt">arrow</tt> command<a name="a0000000969" id="a0000000969"></a> may be followed by the <tt class="tt">with</tt><a name="a0000000970" id="a0000000970"></a> keyword to specify to style of the arrow. The line type, line width and color of the arrow, may be specified using the same syntax as used in the plot command, using the <tt class="tt">linetype</tt>, <tt class="tt">linewidth</tt> and <tt class="tt">color</tt> modifiers after the word <tt class="tt">with</tt>, as in the example: </p><pre>
arrow from 0,0 to 10,10 \
with linetype 2 linewidth 5 color red
</pre><p>The style of the arrow may also be specified after the word <tt class="tt">with</tt>, and three options are available: <tt class="tt">head</tt> (the default), <tt class="tt">nohead</tt>, which produces line segments with no arrowheads on them, and <tt class="tt">twoway</tt>, which produces bidirectional arrows with heads on both ends. </p><p>The <tt class="tt">arrow</tt> command<a name="a0000000971" id="a0000000971"></a> has a twin, the <tt class="tt">line</tt> command<a name="a0000000972" id="a0000000972"></a>, which has the same syntax but with a different style setting of <tt class="tt">nohead</tt>. </p><p> <span class="upshape"><span class="mdseries"><span class="rm">A simple notice generated with the <tt class="tt">text</tt> and <tt class="tt">arrow</tt> commands.</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">arrow</tt> and <tt class="tt">text</tt> commands to produce a simple notice advertising that a lecture has moved to a different seminar room: </p></td>
</tr><tr>
<td style="text-align:left; border-right:1px solid black; border-left:1px solid black"><p><tt class="ttfamily">set multiplot ; set nodisplay</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">w = unit(20*cm) # Width of notice</tt><br /><tt class="ttfamily">h = w/sqrt(2) # Height of notice</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"># Put a rectangular box around notice</tt><br /><tt class="ttfamily">line from 0,0 to w,0 with linewidth 5</tt><br /><tt class="ttfamily">line from w,0 to w,h with linewidth 5</tt><br /><tt class="ttfamily">line from w,h to 0,h with linewidth 5</tt><br /><tt class="ttfamily">line from 0,h to 0,0 with linewidth 5</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"># Write text of notice</tt><br /><tt class="ttfamily">set texthalign center ; set fontsize 3</tt><br /><tt class="ttfamily">text r"<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />bf Astrophysical Fluids Lecture" at w/2,3/4*h</tt><br /><tt class="ttfamily">text r"<img src="images/img-0038.png" alt="$\backslash $" style="vertical-align:-5px;
width:7px;
height:18px" class="math gen" />bf MOVED to Seminar Room 3" at w/2, h/2</tt><br /><tt class="ttfamily">arrow from w/4, h/4 to 3/4*w, h/4 with linewidth 8</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"># Display notice</tt><br /><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-0559.png" alt="\includegraphics[width=\textwidth ]{examples/eps/ex_notice}" style="width:" /></center> </p></td>
</tr>
</table>
</div></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="sect0080.html" title="The text command"><img alt="Previous: The text command" 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="sect0081.html" title="Editing items on the canvas"><img alt="Next: Editing items on the canvas" 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>
|