{% macro plot_grid(array_element, subitem, active_subitem, rows, cols, plot_titles, max_plots_row) %}
{% for title in plot_titles %} {% set idx = loop.index0 %} {% if idx % max_plots_row == 0 %}
{% endif %}
2 %}"col-xl-4 col-lg-6 col-md-12 mb-3"{% endif %}>
{# style="height: 300px;" #}
Placeholder for {{ array_element }} {{ subitem }} plot {{ title }}
{% if idx % max_plots_row == max_plots_row - 1 %}
{% endif %} {% endfor %}
{% endmacro %}