Skip to main content

Figular generates visualisations from flexible, reusable parts

Project description

Figular

Figular generates visualisations from flexible, reusable parts. It is in early development so use with caution.

The official repository is https://gitlab.com/thegalagic/figular.

Table of Contents

Install

The following instructions install Figular as a command line tool. If you would like to deploy it as a website (like Figular.com) see our self-hosting doc instead.

Prerequisites:

  • Linux
  • Python 3
  • Asymptote. This may be in your distribution's repositories already as asymptote. If not see Asymptote's Installation docs.
  • XeTeX. This may be in your distribution's TeX Live package already so try installing texlive. If not then it's often installed explicitly as texlive-xetex.
  • dvisvgm. A dependency of asymptote required for producing SVG graphics. This may be in your distribution's repositories under dvisvgm, texlive-dvisvgm or texlive-extra-utils. If not see dvisvgm's Downloads page.

Install the latest version via pip:

pip install figular

This will install the cmdline tool fig. For usage see below.

Background

Producing visualisations and documents can result in a lot of effort that is hard to reuse. Work such as drawing a diagram by hand, arranging items, placing text, aligning graphs and choosing colours may have to be repeated if a document needs to be updated or expanded to depict new data.

If we can automate that work and have our visualisations react to new data intelligently we can get a much higher level of reuse. If we can build a community we can share our efforts with others and build on their work in turn.

Figular is designed to help in particular situations where:

  • You need to produce a good looking visualisation, image, document
  • You need to produce it more than once, for example a report or dashboard, a set of labels, marketing campaign graphics.
  • The visualisation may need to adapt in future to changes in the data driving it, design changes, layout tweaks etc.
  • You want to share/collaborate on the visualisation or leverage the work of others.

Figular provides preprepared visualisations that you can populate with your own data and tweak the style or layout. You can also develop your own and share with the community. Visualisations can be combined, remixed and adapted.

It's available in the browser and at the cmdline.

Usage

Figular produces SVG files. Run it from the cmdline:

fig [flags] FIGURE DATA [style]

You can specify FIGUREs by name, for example concept/circle. Follow this with DATA for the figure.

For example to use the concept/circle figure and have it draw two circles containing 'One' and 'Two' use this:

fig concept/circle $'One\nTwo'

This will produce a file out.svg. Use the flag --help to see more usage examples.

Full documentation, a list of all figures and their styling is available in the docs directory of the source repository or your installation i.e. /docs/Figular.md.

Thanks

Like all free/open source software Figular is made possible by building on the shoulders of giants. Our thanks to every contributor and maintainer who have brought the ecosystem to where it is today.

In particular we thank the Asymptote project whose graphics language makes it easy to design pictures with code.

Contributing

It's great that you're interested in contributing. Please visit the wiki for how to get involved.

License

We declare our licensing by following the REUSE specification - copies of applicable licenses are stored in the LICENSES directory. Here is a summary:

  • All source code is licensed under AGPL-3.0-or-later.
  • Anything else that is not executable, including the text when extracted from code, is licensed under CC-BY-SA-4.0.

For more accurate information, check individual files.

Figular is free software: you can redistribute it and/or modify it under the terms of the GNU Affero 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 Affero General Public License for more details.

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

figular-0.0.17.tar.gz (318.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

figular-0.0.17-py3-none-any.whl (66.2 kB view details)

Uploaded Python 3

File details

Details for the file figular-0.0.17.tar.gz.

File metadata

  • Download URL: figular-0.0.17.tar.gz
  • Upload date:
  • Size: 318.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.7

File hashes

Hashes for figular-0.0.17.tar.gz
Algorithm Hash digest
SHA256 0d9b60a8171fbbb6ed809eeec58b6183b31b9b9f97cb65c80dcc4975a77f81e0
MD5 bb739de479df7125295cad1d5fcef336
BLAKE2b-256 623a903aa16e6d4dce38c4fd8f4e6364eceaad8a3aa4723ca57d9b73e9901516

See more details on using hashes here.

File details

Details for the file figular-0.0.17-py3-none-any.whl.

File metadata

  • Download URL: figular-0.0.17-py3-none-any.whl
  • Upload date:
  • Size: 66.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.8.0 CPython/3.10.7

File hashes

Hashes for figular-0.0.17-py3-none-any.whl
Algorithm Hash digest
SHA256 ae146a2e22297b8930ade3589d619f57cf6b99ea6571baf2d3f4c560976fd7d1
MD5 4bbd467748f1d919326aee16657d830a
BLAKE2b-256 c018f5c1ad312dafbfd38b6cbab180271b60d2501a222868ebfc3ee236559c74

See more details on using hashes here.

Supported by

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