When using the plot directive in sphinx, I get the following error:
...\\docs\\source\\pyplots/test.py:9: WARNING: Figure caption must be a paragraph or empty