Skip to content

Commit fbf324f

Browse files
committed
added minor details to plot script
1 parent 5bebfc8 commit fbf324f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

particle_counter/json_plot_script.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -162,9 +162,9 @@ def segment_data(timestamps, values, max_gap=timedelta(hours=(44/60))):
162162
axs[i].axhline(y=max_vals[i], color='r', linestyle='--')
163163
axs[i].text(
164164
ts[0], # x-coordinate (start of time axis)
165-
max_vals[i] * 0.9, # y-coordinate (just above the line)
165+
max_vals[i] * 1.0, # y-coordinate (just above the line)
166166
f"ISO 6 max: {max_vals[i]} ct/m3 ",
167-
color='r', fontsize=8
167+
color='white', fontsize=10, bbox=dict(boxstyle="round", facecolor="black", alpha=0.5)
168168
)
169169
axs[i].set_title(channel)
170170
axs[i].set_xlabel("time")

0 commit comments

Comments
 (0)