Modify styling of histograms for many-worker dashboard plots
Fixes
@@ -219,9 +219,10 @@ class ProcessingHistogram(DashboardComponent):
)
self.root = figure(
- title="Tasks Processing",
+ title="Tasks Processing (Histogram)",
id="bk-nprocessing-histogram-plot",
name="processing_hist",
+ y_axis_label="frequency",
**kwargs
)
@@ -237,7 +238,8 @@ class ProcessingHistogram(DashboardComponent):
right="right",
bottom=0,
top="top",
- color="blue",
+ color="deepskyblue",
+ fill_alpha=0.5,
)
@without_property_validation
@@ -259,11 +261,13 @@ class NBytesHistogram(DashboardComponent):
)
self.root = figure(
- title="Bytes Stored",
+ title="Bytes Stored (Histogram)",
name="nbytes_hist",
id="bk-nbytes-histogram-plot",
+ y_axis_label="frequency",
**kwargs
)
+
self.root.xaxis[0].formatter = NumeralTickFormatter(format="0.0 b")
self.root.xaxis.major_label_orientation = -math.pi / 12
@@ -279,7 +283,8 @@ class NBytesHistogram(DashboardComponent):
right="right",
bottom=0,
top="top",
- color="blue",
+ color="deepskyblue",
+ fill_alpha=0.5,
)
@without_property_validation
@@ -289,7 +294,7 @@ class NBytesHistogram(DashboardComponent):
d = {"left": x[:-1], "right": x[1:], "top": counts}
self.source.data.update(d)
- self.root.title.text = "Bytes stored: " + format_bytes(nbytes.sum())
+ self.root.title.text = "Bytes stored (Histogram): " + format_bytes(nbytes.sum())
class CurrentLoad(DashboardComponent):
