figure captions for plots
captions with markdown images work perfect.
Im trying to get figure captions working on matlibplot plots...
On https://github.com/elegant-scipy/elegant-scipy/issues/239 there is @yeus with this...
#explicitly create figure: fig, ax = plt.subplots(figsize=(8,8), facecolor='w', edgecolor='k') (...)
#then at the end: display(fig, metadata={"label" : "fig:foo", "caption" : "bar"})
Is this metadata think used within nbsphinx? if this could be worked out with the display command it will work on every image.
Currently, the only metadata that's handled by nbsphinx is "height" and "width", see #21.
I'm open for a PR that adds support for figure labels and captions.
Should this only work for LaTeX or also for HTML output?
Because of http://www.sphinx-doc.org/en/master/usage/configuration.html#confval-numfig it should be working on both html and latex.
I only have to rebuild my ploting workflow to work with this - then i release the next patch
If numfig is active - all images and chapters have numbers. Only if the output is html direct markdown images have no numbering.