/usr/share/doc/pyxplot/html/sect0079.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 | <!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: Adding other vector graphics objects</title>
<link href="sec-multiplot.html" title="Multiplot mode" rel="next" />
<link href="ch-vector_graphics.html" title="Producing vector graphics" 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="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Previous: Producing vector graphics" 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="sec-multiplot.html" title="Multiplot mode"><img alt="Next: Multiplot mode" 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">Adding other vector graphics objects</b>
</span>
</span>
<hr />
</div>
<div><h1 id="a0000000080">3.1 Adding other vector graphics objects</h1>
<p>In addition to graphs, a range of other objects can be placed on graphics canvas: </p><ul class="itemize">
<li><p>Rectangular boxes (the <tt class="tt">box</tt> command<a name="a0000000945" id="a0000000945"></a>). </p></li><li><p>Circles and arcs (the <tt class="tt">arc</tt> and <tt class="tt">circle</tt> command<a name="a0000000946" id="a0000000946"></a>s). </p></li><li><p>Ellipses and elliptical arcs (the <tt class="tt">ellipse</tt> command<a name="a0000000947" id="a0000000947"></a>). </p></li><li><p>Graphical images in <tt class="tt">bmp</tt>, <tt class="tt">eps</tt>, <tt class="tt">gif</tt>, <tt class="tt">jpeg</tt> or <tt class="tt">png</tt> formats (the <tt class="tt">eps</tt> and <tt class="tt">image</tt> command<a name="a0000000948" id="a0000000948"></a>s). </p></li><li><p>Lines and arrows (the <tt class="tt">arrow</tt> and <tt class="tt">line</tt> command<a name="a0000000949" id="a0000000949"></a>s). </p></li><li><p>Piecharts (the <tt class="tt">piechart</tt> command<a name="a0000000950" id="a0000000950"></a>). </p></li><li><p>Points labelled by crosses and other symbols (the <tt class="tt">point</tt> command<a name="a0000000951" id="a0000000951"></a>). </p></li><li><p>Polygons (the <tt class="tt">polygon</tt> command<a name="a0000000952" id="a0000000952"></a>). </p></li><li><p>Text labels (the <tt class="tt">text</tt> command<a name="a0000000953" id="a0000000953"></a>). </p></li>
</ul><p> Put together, these commands can be used to produce a wide range of vector graphics. The remainder of this chapter describes each of these commands in turn, providing a variety of examples of their use. </p><p>These commands all interface with Pyxplot’s maths environment in common ways. For example, vector positions on the graphics canvas may be specified in three ways: </p><ul class="itemize">
<li><p>Two comma-separated dimensionless numbers, taken to be in centimetres, e.g. <tt class="tt">4,5</tt>. </p></li><li><p>Two comma-separated numbers with dimensions of length, e.g. <tt class="tt">45*unit(mm), 13*unit(cm)</tt>. </p></li><li><p>As a vector, either dimensionless, or with units of length, e.g. <tt class="tt">vector(4,5)</tt> or <tt class="tt">vector(13,25)*unit(mm)</tt>. </p></li>
</ul><p>Many of these commands take rotation angles as inputs: these may be specified either as dimensionless numbers, taken to be in degrees, or as values with physical units of angle, e.g. <tt class="tt">0.25*unit(rev)</tt>. </p><p>Where these commands take colors as inputs, as elsewhere in Pyxplot, the color may be specified in one of three ways: </p><ul class="itemize">
<li><p>As a number, referred to a color from a present palette; see Section <a href="sec-palette.html">1.1.1</a>. </p></li><li><p>As a recognised named color, e.g. <tt class="tt">red</tt>; see Section <a href="sec-color_names.html">7.4</a> for a list of these. </p></li><li><p>As an object of type color, for example, <tt class="tt">rgb(0,1,0)</tt>, <tt class="tt">hsb(0.5,0.5,0.5)</tt>, <tt class="tt">gray(0.2)</tt>, <tt class="tt">colors.green + colors.red</tt>, <tt class="tt">colors.yellow - colors.green</tt>. </p></li>
</ul></div>
<div class="navigation">
<table cellspacing="2" cellpadding="0" width="100%">
<tr>
<td><a href="ch-vector_graphics.html" title="Producing vector graphics"><img alt="Previous: Producing vector graphics" 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="sec-multiplot.html" title="Multiplot mode"><img alt="Next: Multiplot mode" 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>
|