Skip to main content

Matplotlib plotting stuff

Project description

FigureFirst

FigureFirst is a python 3.5+ library to decorate and parse SVG files so they can serve as layout documents for matplotlib figures.

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/stable
  • sudo apt update
  • sudo apt install inkscape

Optimizing Inkscape settings

Try increasing the Rendering Tile Multiplier:

  • Edit > Preference > Rending
  • Rendering Tile Multiplier = 50 Restart 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_files option
    • To test against all supported python versions, run tox
  • Enable your github account with travis for continuous integration
  • Raise a pull request

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

figurefirst-0.0.5.tar.gz (31.9 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page