FigureFirst
FigureFirst is a python 3.5+ library to decorate and parse SVG files so they can serve as layout documents for matplotlib figures. In principle FigureFirst works on python 2.7, but it is not supported.
- See our github page for readme and examples: http://flyranch.github.io/figurefirst/
- Read the docs: https://figurefirst.readthedocs.io/en/latest/index.html
- Read our Scipy 2017 proceedings: http://conference.scipy.org/proceedings/scipy2017/lindsay.html
If you use FigureFirst, please cite the above paper to help others find FigureFirst.
Installation
pip install figurefirst
Use with Inkscape
FigureFirst is developed and tested with Inkscape. Some versions and settings of Inkscape are very slow. Try Inkscape 0.92: https://inkscape.org/en/release/0.92.3/
Installing Inkscape 0.92 on Ubuntu
You can install Inkscape 0.92 using ppa:
sudo add-apt-repository ppa:inkscape.dev/stablesudo apt updatesudo apt install inkscape
Optimizing Inkscape settings
Try increasing the Rendering Tile Multiplier:
Edit > Preference > RendingRendering Tile Multiplier = 50Restart Inkscape
Installing figurefirst extensions
This package includes a console script, figurefirst_ext to install inkscape extensions.
It tries to infer the default installation path for your OS (do figurefirst_ext --help to see what they are),
or you can pass a path in manually, e.g..
figurefirst_ext ~/.config/inkscape/extensions
Development
- Clone this repo
- Test locally by running
pytest- To keep the test output files for inspection, add the
--keep_filesoption - To test against all supported python versions, run
tox
- To keep the test output files for inspection, add the
- Enable your github account with travis for continuous integration
- Raise a pull request
Metadata
Release files for figurefirst 0.0.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| figurefirst-0.0.6.tar.gz | 31.9 kB | Without provenance | Details for figurefirst-0.0.6.tar.gz |
Release files / figurefirst-0.0.6.tar.gz
| Download URL | figurefirst-0.0.6.tar.gz |
|---|---|
| Size | 31.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5d08fbfc8660383594c11c2bec41160e64ac0aa9b3ad7b64c40f84788fa0ee09
|
|
BLAKE2b-256 checksum How to use checksums |
35b40d36252fd7b049b259f7fab973180f35ff3bd33d838113c5936d72528bed
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.21.0 setuptools/40.8.0 requests-toolbelt/0.9.1 tqdm/4.31.1 CPython/3.5.2
|
Security for figurefirst 0.0.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.