Rename plot title
parent
54d8084db6
commit
b16702561c
|
@ -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],
|
y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates],
|
||||||
colorscale='Viridis',
|
colorscale='Viridis',
|
||||||
colorbar={'tick0': 0,'dtick': 1}))
|
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)
|
pio.write_html(plot, file=output_path, auto_open=False)
|
||||||
|
|
||||||
# get current patient id
|
# get current patient id
|
||||||
|
|
|
@ -16,7 +16,7 @@ def getHourlyRowCountHeatmap(dates, hourly_row_count, sensor_name, pid, output_p
|
||||||
x=[x for x in range(24)],
|
x=[x for x in range(24)],
|
||||||
y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates],
|
y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates],
|
||||||
colorscale='Viridis'))
|
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)
|
pio.write_html(plot, file=output_path, auto_open=False)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue