diff --git a/src/visualization/compliance_heatmap.py b/src/visualization/compliance_heatmap.py index ed666c6a..632bdedf 100644 --- a/src/visualization/compliance_heatmap.py +++ b/src/visualization/compliance_heatmap.py @@ -20,7 +20,7 @@ def getComplianceHeatmap(dates, compliance_matrix, pid, output_path, bin_size): y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates], colorscale='Viridis', colorbar={'tick0': 0,'dtick': 1})) - plot.update_layout(title="Five minutes has_row heatmap for " + pid) + plot.update_layout(title="Compliance heatmap. Five-minute bins showing how many sensors logged at least one row of data in that period for " + pid) pio.write_html(plot, file=output_path, auto_open=False) # get current patient id diff --git a/src/visualization/heatmap_rows.py b/src/visualization/heatmap_rows.py index 2e8b8e0b..508d8929 100644 --- a/src/visualization/heatmap_rows.py +++ b/src/visualization/heatmap_rows.py @@ -16,7 +16,7 @@ def getHourlyRowCountHeatmap(dates, hourly_row_count, sensor_name, pid, output_p x=[x for x in range(24)], y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates], colorscale='Viridis')) - plot.update_layout(title="Hourly row count heatmap for " + pid + " and sensor " + sensor_name) + plot.update_layout(title="Row count heatmap for " + sensor_name + " of " + pid) pio.write_html(plot, file=output_path, auto_open=False)