GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — figworks/docs/index.md at v0.12.0 · maiani/figworks

Expand file tree

/

index.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
87 lines (67 loc) · 3.74 KB
/

index.md

Copy path

File metadata and controls

87 lines (67 loc) · 3.74 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions
icon lucide/rocket

FigWorks

A Python suite for reproducible, reviewable, and editable scientific figures.

FigWorks composes Matplotlib and Plotly plots, VecTeX equations, VecView scenes, VecWire circuits, and native SVG annotations. Readable source, shared style settings, and semantic SVG keep figures inspectable from computation to final layout. Deterministic builds require the same inputs, tools, and fonts.

The canonical output is SVG. PDF and PNG export are supported through CairoSVG. Named elements and panels carry stable identifiers so the final graphic stays editable programmatically.

Figures you own, even when AI helped make them. An assistant can draft the script, but what you keep is plain Python in your repository and SVG with named parts: every number traces back to code you can check, every label can be changed by hand, and the figure rebuilds from source whenever you need it.

The gallery shows journal figures from across the sciences: quantum devices, graphene, photonics, biophysics, neuroscience, exoplanets, reaction chemistry, the climate, economics, and electronics.

The suite

FigWorks is the composition layer of a four-project suite: VecTeX renders TeX equations to SVG fragments, VecView draws layered 3D schematics as SVG documents, and VecWire draws editable circuit schematics as SVG documents. Each is developed independently and usable alone.

All three producers integrate through one method, to_svg_document(), so FigWorks needs no adapter for any of them and none imports FigWorks.

Why FigWorks?

  • SVG-native assembly — build figures from real vector elements.
  • Matplotlib integration — embed Matplotlib figures as SVG, and import SVG back into Matplotlib, in both directions.
  • Semantic selectors — address any element by #id, .class, or tag name.
  • Physical units — lay out in px, pt, mm, cm, or in.
  • Export anywhere — save to .svg, .pdf, and .png.

!!! note

FigWorks is designed as an *editable assembly layer* between your plotting
code and the final publication graphic. It does not try to replace
Matplotlib, Inkscape, Illustrator, or LaTeX.

Feature overview

Area What you can do
Figure Create an SVG canvas with physical dimensions and a theme.
Panels Define rectangular regions with anchors.
Matplotlib Export figures to SVG, embed them as panels, or import SVG as Matplotlib artists.
Placeholders Reserve a region and fill it with SVG content later by id.
Layout Assemble many SVG panels into a labelled grid.
Selectors Select, style, and delete elements by id, class, or tag.
Elements Add text, labels, rects, lines, circles, ellipses, polylines, paths, and arrows.
Export Save to SVG, PDF, and PNG; display inline in notebooks.

Install

python -m pip install figworks

To work on FigWorks itself, see Development.

Full API

Symbol Purpose
Figure Top-level SVG figure and assembly API.
Panel A named, anchored rectangular region of a figure.
Anchor A named absolute point (panel corners, edges, center).
Theme Default styling (fonts, strokes, label sizes).
load_theme Load a built-in style or a style.md as a Theme.
FigureCollection Build a set of figures under one style.
compose Insert SVG content into Matplotlib axes.
CheckReport, CheckIssue The result of Figure.check() preflight.
layout_svgs Assemble multiple SVGs into a labelled grid.
display_svg Render an SVG / figure inline in a notebook.
You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.