{% set plot_titles = [
"interleaved_pedestals_rate",
"interleaved_flatfield_rate",
"cosmics_rate",
"contained_mu-rings_rate"
] %}

{% extends "templates/base.html" %}

{% import "macros/plot_grid.html" as plot_macros %}
{% import "macros/extra_js.html" as add_js_macros %}
{% import "macros/extra_css.html" as add_css_macros %}

{% block title %}
QP: {{ array_element }} {{ subitem }}
{% endblock %}

{% block extra_css %}
{{ add_css_macros.add_css(['badger','scatterPlot']) }}
{% endblock %}

{% block content %}
{{ plot_macros.plot_grid(array_element, subitem, active_subitem, 2, 2, plot_titles, 2) }}
{% endblock %}

{% block extra_js %}
{{ add_js_macros.add_js(['d3','scatterPlot','criteriaPlot']) }}
{% endblock %}
