Fixed heatmap issue#25

replace/ac23b6cd5798016f45b923932f3fd886f24d5a28
Meng Li 2020-02-07 11:19:56 -05:00
parent 3d13940bd3
commit 2798a957be
1 changed files with 1 additions and 1 deletions

View File

@ -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="Compliance heatmap. Five-minute bins showing how many sensors logged at least one row of data in that period for " + pid)
plot.update_layout(title="Compliance heatmap.<br>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