May 2020: updated for Inkscape 1.0
Plots prepared using the Grace plotting package can be exported to EPS, cropped to bounding box, and imported into the Inkscape drawing package. This exension automates these intermediate steps by wrapping the necessary command line tools into an Inkscape extension.
Copy the files agr_import.py
and agr_import.inx
into your local
Inkscape extension folder (eg $HOME/.config/inkscape/extensions/
on
unix, or %APPDATA%\inkscape\extensions\
on Windows).
The following tools are also required:
gracebat
, 'headless' (batch) mode tool which usually comes with Grace ;epstool
, which is often packaged as a standalone tool and can be obtained from the epstool home page;ps2pdf
, which is part of Ghostscript (if you can already import EPS then you have this).
In Inkscape, Grace (.agr
) files should now appear under File →
Import, and can be selected for import. The conversion to PDF via EPS
is done automatically, and the subsequent dialogue is the standard one
for importing PDF files.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
This program is copyright © 2015, 2020 Patrick B Warren.
Email: [email protected]