Rename plot title

replace/66ed9efce244b97f12ba62f7f128c0e19489f171
Meng Li 2019-11-11 15:03:56 -05:00
parent 54d8084db6
commit b16702561c
2 changed files with 2 additions and 2 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="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

View File

@ -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)