{% for (fig_id, fig_manager) in figures %} {% set fig_label='Figure: {}'.format(fig_manager.canvas.figure.get_label()) %} {% if fig_label == 'Figure: ' %} {% set fig_label="Figure {}".format(fig_id) %} {% end %}
{{ fig_label }}
{% end %}