Merge branch 'master' of https://github.com/JulioV/moshi-aware
commit
bdb473411b
|
@ -17,8 +17,9 @@ def getComplianceHeatmap(dates, compliance_matrix, pid, output_path, bin_size):
|
||||||
"{0:0=2d}".format(x % bins_per_hour * bin_size) for x in range(24 * bins_per_hour)]
|
"{0:0=2d}".format(x % bins_per_hour * bin_size) for x in range(24 * bins_per_hour)]
|
||||||
plot = go.Figure(data=go.Heatmap(z=compliance_matrix,
|
plot = go.Figure(data=go.Heatmap(z=compliance_matrix,
|
||||||
x=x_axis_labels,
|
x=x_axis_labels,
|
||||||
y=dates,
|
y=[datetime.datetime.strftime(date, '%Y/%m/%d') for date in dates],
|
||||||
colorscale='Viridis'))
|
colorscale='Viridis',
|
||||||
|
colorbar={'tick0': 0,'dtick': 1}))
|
||||||
plot.update_layout(title="Five minutes has_row heatmap for " + pid)
|
plot.update_layout(title="Five minutes has_row heatmap for " + 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