From b16702561cea6163fd2fd3b424f04d0ab74fc142 Mon Sep 17 00:00:00 2001 From: Meng Li <34143965+Meng6@users.noreply.github.com> Date: Mon, 11 Nov 2019 15:03:56 -0500 Subject: [PATCH] Rename plot title --- src/visualization/compliance_heatmap.py | 2 +- src/visualization/heatmap_rows.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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)