Module epsfile
: EPS file inclusion¶
With the help of the epsfile.epsfile
class, you can easily embed another EPS
file in your canvas, thereby scaling, aligning the content at discretion. The
most simple example looks like
from pyx import * c = canvas.canvas() c.insert(epsfile.epsfile(0, 0, "file.eps")) c.writeEPSfile("output")
All relevant parameters are passed to the epsfile.epsfile
constructor. They
are summarized in the following table:
argument name |
description |
---|---|
|
\(x\)-coordinate of position. |
|
\(y\)-coordinate of position. |
|
Name of the EPS file (including a possible extension). |
|
Desired width of EPS graphics or |
|
Desired height of EPS graphics or |
|
Scaling factor for EPS graphics or |
|
Alignment of EPS graphics. The first
character specifies the vertical alignment:
|
|
Clip to bounding box of EPS file? |
|
Use lower left corner of bounding box of EPS file? Set to \(0\) with care. |
|
If given, use |
|
Search for file using the kpathsea library. |