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. Additional layouts can be defined with :layout-sm:, :layout-lg:, :layout-xl:, for different screen sizes (HTML only).

Responsive sub-figure

Metadata

Release files for sphinx-subfigure 0.2.3

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.2.3
File Size Uploaded Provenance Actions
sphinx_subfigure-0.2.3.tar.gz 576.2 kB Without provenance Details for sphinx_subfigure-0.2.3.tar.gz

Built distribution (wheel)

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

Total release size: 585.4 kB

Release files / sphinx_subfigure-0.2.3.tar.gz

Download URL sphinx_subfigure-0.2.3.tar.gz
Size 576.2 kB
Tags Source
SHA-256 checksum
How to use checksums
0ca26681ee6800802bde4f0e0860bd646d337f22849a765d9782ce4b77a9d5db
BLAKE2b-256 checksum
How to use checksums
dcd2df8c0c4a4d0c6bc2bfa2cacf9d1b408000d508b6f1a6c5c8485caeaf0ffb
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

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

Download URL sphinx_subfigure-0.2.3-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
24318a2ecd605351896394f38e5f2b5085f21ad9c99773207223079b3062cb74
BLAKE2b-256 checksum
How to use checksums
16cdd50a3508459469de1a4544fbe28ab7f25cbdea08751215e68cef5b975bc3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via python-requests/2.28.1

Security for sphinx-subfigure 0.2.3

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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