Skip to content

Commit

Permalink
Fix captions for plot directive in latex target
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Jun 18, 2016
1 parent 25ce666 commit a053ede
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/matplotlib/sphinxext/plot_directive.py
Expand Up @@ -398,7 +398,12 @@ def remove_coding(text):
{% for img in images %}
{% if 'pdf' in img.formats -%}
.. image:: {{ build_dir }}/{{ img.basename }}.pdf
.. figure:: {{ build_dir }}/{{ img.basename }}.pdf
{% for option in options -%}
{{ option }}
{% endfor %}
{{ caption }}
{% endif -%}
{% endfor %}
Expand Down

0 comments on commit a053ede

Please sign in to comment.