/usr/share/doc/python-pyx-doc/manual/epsfile.html is in python-pyx-doc 0.12.1-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 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | <!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">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Module epsfile: EPS file inclusion — PyX 0.12.1 Manual</title>
<link rel="stylesheet" href="_static/default.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '0.12.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<script type="text/javascript" src="_static/mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<link rel="top" title="PyX 0.12.1 Manual" href="index.html" />
<link rel="next" title="Bitmaps" href="bitmap.html" />
<link rel="prev" title="Module connector" href="connector.html" />
</head>
<body>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="bitmap.html" title="Bitmaps"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="connector.html" title="Module connector"
accesskey="P">previous</a> |</li>
<li><a href="manual.html">PyX 0.12.1 Manual</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body">
<span class="target" id="module-epsfile"></span><div class="section" id="module-epsfile-eps-file-inclusion">
<h1>Module <a class="reference internal" href="#module-epsfile" title="epsfile"><tt class="xref py py-mod docutils literal"><span class="pre">epsfile</span></tt></a>: EPS file inclusion<a class="headerlink" href="#module-epsfile-eps-file-inclusion" title="Permalink to this headline">¶</a></h1>
<p>With the help of the <tt class="docutils literal"><span class="pre">epsfile.epsfile</span></tt> class, you can easily embed another EPS
file in your canvas, thereby scaling, aligning the content at discretion. The
most simple example looks like</p>
<blockquote>
<div><div class="highlight-python"><div class="highlight"><pre><span class="kn">from</span> <span class="nn">pyx</span> <span class="kn">import</span> <span class="o">*</span>
<span class="n">c</span> <span class="o">=</span> <span class="n">canvas</span><span class="o">.</span><span class="n">canvas</span><span class="p">()</span>
<span class="n">c</span><span class="o">.</span><span class="n">insert</span><span class="p">(</span><span class="n">epsfile</span><span class="o">.</span><span class="n">epsfile</span><span class="p">(</span><span class="mi">0</span><span class="p">,</span> <span class="mi">0</span><span class="p">,</span> <span class="s">"file.eps"</span><span class="p">))</span>
<span class="n">c</span><span class="o">.</span><span class="n">writeEPSfile</span><span class="p">(</span><span class="s">"output"</span><span class="p">)</span>
</pre></div>
</div>
</div></blockquote>
<p>All relevant parameters are passed to the <tt class="docutils literal"><span class="pre">epsfile.epsfile</span></tt> constructor. They
are summarized in the following table:</p>
<table border="1" class="docutils">
<colgroup>
<col width="31%" />
<col width="69%" />
</colgroup>
<thead valign="bottom">
<tr class="row-odd"><th class="head">argument name</th>
<th class="head">description</th>
</tr>
</thead>
<tbody valign="top">
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">x</span></tt></td>
<td><span class="math">\(x\)</span>-coordinate of position.</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">y</span></tt></td>
<td><span class="math">\(y\)</span>-coordinate of position.</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">filename</span></tt></td>
<td>Name of the EPS file (including a possible
extension).</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">width=None</span></tt></td>
<td>Desired width of EPS graphics or <tt class="docutils literal"><span class="pre">None</span></tt> for
original width. Cannot be combined with scale
specification.</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">height=None</span></tt></td>
<td>Desired height of EPS graphics or <tt class="docutils literal"><span class="pre">None</span></tt>
for original height. Cannot be combined with
scale specification.</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">scale=None</span></tt></td>
<td>Scaling factor for EPS graphics or <tt class="docutils literal"><span class="pre">None</span></tt>
for no scaling. Cannot be combined with width
or height specification.</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">align="bl"</span></tt></td>
<td>Alignment of EPS graphics. The first
character specifies the vertical alignment:
<tt class="docutils literal"><span class="pre">b</span></tt> for bottom, <tt class="docutils literal"><span class="pre">c</span></tt> for center, and <tt class="docutils literal"><span class="pre">t</span></tt>
for top. The second character fixes the
horizontal alignment: <tt class="docutils literal"><span class="pre">l</span></tt> for left, <tt class="docutils literal"><span class="pre">c</span></tt>
for center <tt class="docutils literal"><span class="pre">r</span></tt> for right.</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">clip=1</span></tt></td>
<td>Clip to bounding box of EPS file?</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">translatebbox=1</span></tt></td>
<td>Use lower left corner of bounding box of EPS
file? Set to <span class="math">\(0\)</span> with care.</td>
</tr>
<tr class="row-odd"><td><tt class="docutils literal"><span class="pre">bbox=None</span></tt></td>
<td>If given, use <tt class="docutils literal"><span class="pre">bbox</span></tt> instance instead of
bounding box of EPS file.</td>
</tr>
<tr class="row-even"><td><tt class="docutils literal"><span class="pre">kpsearch=0</span></tt></td>
<td>Search for file using the kpathsea library.</td>
</tr>
</tbody>
</table>
<span class="target" id="epsfile"></span></div>
</div>
</div>
</div>
<div class="sphinxsidebar">
<div class="sphinxsidebarwrapper">
<h4>Previous topic</h4>
<p class="topless"><a href="connector.html"
title="previous chapter">Module <tt class="docutils literal"><span class="pre">connector</span></tt></a></p>
<h4>Next topic</h4>
<p class="topless"><a href="bitmap.html"
title="next chapter">Bitmaps</a></p>
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/epsfile.txt"
rel="nofollow">Show Source</a></li>
</ul>
<div id="searchbox" style="display: none">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<input type="text" name="q" />
<input type="submit" value="Go" />
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
<p class="searchtip" style="font-size: 90%">
Enter search terms or a module, class or function name.
</p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="py-modindex.html" title="Python Module Index"
>modules</a> |</li>
<li class="right" >
<a href="bitmap.html" title="Bitmaps"
>next</a> |</li>
<li class="right" >
<a href="connector.html" title="Module connector"
>previous</a> |</li>
<li><a href="manual.html">PyX 0.12.1 Manual</a> »</li>
</ul>
</div>
<div class="footer">
© Copyright 2011, Jörg Lehmann, Michael Schindler, André Wobst.
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.3.
</div>
</body>
</html>
|