Skip to main content

A local figure-workflow tool for reproducible, publication-ready Matplotlib panels.

Project description

FigStudio

FigStudio is a local figure-workflow tool for reproducible, publication-ready Matplotlib figure panels. It is built for scientific Python users who already have data in a script or notebook and want a faster way to create plot layers, add common statistics recipes, style panels, preview, export, and save readable Matplotlib OO code.

FigStudio 是一个本地 figure-workflow 工具,用于制作可复现、适合发表的 Matplotlib 图版。它面向已经在脚本或 Notebook 中完成数据处理的科研 Python 用户,用 GUI 快速创建图层、添加常见统计 recipe、调整图版、预览、导出并保存可读的 Matplotlib OO 代码。

Install / 安装

pip install figstudio

The package wheel includes the built React editor. End users do not need Node, npm, Vite, or the frontend source tree after installation.

wheel 包含构建后的 React 编辑器。普通用户安装后不需要 Node、npm、Vite,也不需要前端源码目录。

Quick Start / 快速开始

Add FigStudio after data preparation and give it one controlled code block:

在数据处理完成后调用 FigStudio,并提供一个受控代码块:

import figstudio

# Finish data processing first.
session = figstudio.open(locals(), script_path=__file__, block_id="main")

# figstudio:start main
# figstudio:end main

Open the editor, create or edit layers, then click Save code. FigStudio replaces only the code between the matching markers.

打开编辑器,创建或调整图层,然后点击 Save code。FigStudio 只替换匹配 marker 中间的代码。

Run the demo:

运行 demo:

figstudio demo

For notebook-style use, omit script_path; Save code returns replacement cell code instead of editing notebook files.

Notebook 风格使用时不要传 script_path;点击 Save code 会返回替换 cell 代码,不会直接修改 Notebook 文件。

Development / 开发

Backend tests:

后端测试:

uv run --extra dev pytest

Frontend development:

前端开发:

cd frontend
npm install
npm run build
npm run dev

Build a publishable package:

构建可发布包:

uv build

The build hook runs npm ci, builds the frontend, and bundles the output into the Python wheel. See the developer guide for feature work and release checks.

构建 hook 会运行 npm ci,构建前端,并把产物打进 Python wheel。功能开发和发布检查见开发者指南。

Documentation / 文档

Reader / 读者 Start here / 从这里开始
Users creating figures / 制图用户 User Guide
Product planning / 产品规划 Product Requirements and Roadmap
API consumers / API 使用者 API Reference
Contributors / 继续开发者 Developer Guide and Technical Design

The README stays intentionally short. Long troubleshooting, API contracts, architecture details, and backlog items live in docs/.

README 有意保持简短。较长的排错、API 契约、架构细节和后续计划都放在 docs/ 中。

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

figstudio-0.2.0.tar.gz (295.9 kB view details)

Uploaded Source

Built Distribution

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

figstudio-0.2.0-py3-none-any.whl (238.3 kB view details)

Uploaded Python 3

File details

Details for the file figstudio-0.2.0.tar.gz.

File metadata

  • Download URL: figstudio-0.2.0.tar.gz
  • Upload date:
  • Size: 295.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figstudio-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b3c6d41c04ae20b1e1e3bfb031d16c686dde2994f67f590efec53744acd64ba3
MD5 36843e0d0dac24b3b043e0a641fed937
BLAKE2b-256 0463cfd863440e0adeb1c391bd161a1270496af379870991d278f9b9c75bd593

See more details on using hashes here.

Provenance

The following attestation bundles were made for figstudio-0.2.0.tar.gz:

Publisher: publish-pypi.yml on Isabelle20070607/figstudio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file figstudio-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: figstudio-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 238.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for figstudio-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e1fc89bc177d48d395424f50254ffc29faa5850fe7e238f3d36183d9ebc60e4e
MD5 29da1f8a99da782537c4151a100595bf
BLAKE2b-256 8107a436a64b447d754f02d9093d8f6a6f6e83ee2c94f1cc2a51c4cb99ec0f15

See more details on using hashes here.

Provenance

The following attestation bundles were made for figstudio-0.2.0-py3-none-any.whl:

Publisher: publish-pypi.yml on Isabelle20070607/figstudio

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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