sphinx-subfigure
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
Each image is automatically assigned an area identifier (A, B, C, etc.).
Layouts are formed
|