sensortoolkit.plotting._plot_formatting.met_scatter_lims
- met_scatter_lims(met_data, param, met_param, xlims, ylims, serials, avg_df)[source]
Set axes limits for plots generated by
normalized_met_scatter()
.- Parameters
met_data (pandas DataFrame) – Reference dataset containing meteorological data for either temperature or relative humidity, logged at 1-hour averages.
param (str) – The name of the SDFS parameter for which normalized sensor-reference concentration pairs will be displayed along the y-axis.
met_param (str) – The name of the meteorological parameter displayed along the x-axis. The name is the SDFS parameter name assocaited with the meteorological parameter; for temperature, pass
'Temp'
, for relative humidity, pass'RH'
.xlims (Two-element tuple) – The x-limits for the normalized meteorological scatterplot. Data along the x-axis are meteorological measurements (either temperature or relative humidity).
ylims (Two-element tuple) – The y-limits for the normalized meteorological scatterplot. Data along the y-axis are normalized sensor/reference concentration pairs.
serials (dict) – A dictionary of serial identifiers unique to each sensor in the deployment testing group.
avg_df (pandas DataFrame) – A dataset containing the intersensor average for concurrently recorded sensor measurements for each parameter measured by the air sensor. The 1st and 99th percentile of the normalized (sensor/reference) intersensor average values are used to set the y-limits for plots.
- Returns
- Four-element tuple containing:
xmin (float)
xmax (float)
ymin (float)
ymax (float)
- Return type
(tuple)