{% extends 'base.html' %} {% block code %} {% if single %}
{% else %}
{% for id, plot in code.items() %}
{% if plot["title"] %}

{{ plot["title"] }}

{% endif %}
{% endfor %}
{% endif %} {% endblock %} {% block wait %} waitForFigure("{{ id }}").then(figure => { const div = document.getElementById("myplot"); const svg = (figure.tagName == "FIGURE") ? figure.childNodes[figure.childNodes.length - 1] : figure; const boundingRect = div.getBoundingClientRect(); width = {{ width_code }}; height = boundingRect.height; {% if serialize %} {{ serialize_code }} {% endif %} }) {% endblock %}