Skip to main content

sphinx-subfigure

PyPI

A sphinx extension to create figures with multiple images:

  • Provides a simple format for complex image layouts.
  • Supports HTML fully, with responsive layouts, for different screen sizes
    • LaTeX is supported, except for images that span multiple rows.
    • degrades gracefully for other formats.
  • Supports figure numbering and referencing.
  • Supports image sub-captions, via alt text.

Usage

Install sphinx-subfigure with pip install sphinx-subfigure, then add sphinx_subfigure to your conf.py file's extensions variable:

extensions = ["sphinx_subfigure"]

numfig = True  # optional

Now add a subfigure directive to your document:

.. subfigure:: AA|BC
   :layout-sm: A|B|C
   :subcaptions: above
   :name: myfigure
   :class-grid: outline

   .. image:: imageA.png
      :alt: Image A

   .. image:: imageB.png
      :alt: Image B

   .. image:: imageC.png
      :alt: Image C

    Figure Caption
  1. Each image is automatically assigned an area identifier (A, B, C, etc.).
  2. Layouts are formed by composing the areas into a grid, with rows delimited by |.
  3. Each area must be used exactly once in the layout, and form a single rectangle.
  4. "Empty" areas can be designated with .
  5. Spaces in the layout are ignored, so they can be used for visual alignment.
  6. Additional layouts can be defined with :layout-sm:, :layout-lg:, :layout-xl:, and :layout-xxl:, for different screen sizes (HTML only).

Responsive sub-figure

Metadata

Release files for sphinx-subfigure 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for sphinx-subfigure 0.3.0
File Size Uploaded Provenance Actions
sphinx_subfigure-0.3.0.tar.gz 10.0 kB With provenance Details for sphinx_subfigure-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for sphinx-subfigure 0.3.0
File Interpreter ABI Platform Actions
sphinx_subfigure-0.3.0-py3-none-any.whl Python 3 none any Details for sphinx_subfigure-0.3.0-py3-none-any.whl

Total release size: 20.8 kB

Release files / sphinx_subfigure-0.3.0.tar.gz

Download URL sphinx_subfigure-0.3.0.tar.gz
Size 10.0 kB
Tags Source
SHA-256 checksum
How to use checksums
f04ea90a2f0683751afb5aaadcb9bb8c64dbf0e954e7191457ec0ce4373d60e0
BLAKE2b-256 checksum
How to use checksums
6ee1fff4dba0ee108b138a2e654411ea6f7b8cb4cdd7661e5afbb8b66f64d41e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Release files / sphinx_subfigure-0.3.0-py3-none-any.whl

Download URL sphinx_subfigure-0.3.0-py3-none-any.whl
Size 10.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
85a7318a2ce35fdad9cb8c073b670f3c024751c7b9d3b4239a366971ef0a898e
BLAKE2b-256 checksum
How to use checksums
d86f02d50d7820b5ad1573b4e7857974d97fe03ea855f9f997bd4146fe12220d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

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.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

Security for sphinx-subfigure 0.3.0

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for sphinx_subfigure-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 10, 2026.

Transparency log

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.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page