Skip to content

Figure caption for python figures #5

@hagenw

Description

@hagenw

For the figures created with .. plot::, there is in theory the possibility to gave them a caption, but this seems to work only for code included from files.

At the moment I solved the problem, by adding another figure:

.. plot::

    # some code here that produces a figure

.. _fig-some-figure:

.. figure:: img/placeholder.png
    :align: center

    Caption of the figure.

The placeholder.png file is a 1px large file as we have to include something.

Another disadvantage is that the provided permalink will only point to this small image (so, only to the caption) and the actual figure will be hidden and you have to scroll up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions