Skip to content

Commit 6c4cc0e

Browse files
committed
chore: chart fix
1 parent ec50d55 commit 6c4cc0e

2 files changed

Lines changed: 30 additions & 32 deletions

File tree

docs/index.html

Lines changed: 28 additions & 29 deletions
Large diffs are not rendered by default.

main.qmd

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Symulujemy stopniowy wzrost szumu. Zobaczymy, w którym momencie system przekroc
236236
#| label: fig-evolving-degradation-signal
237237
#| fig-cap: "Sygnał ulegający stopniowej degradacji (Symulacja awarii)"
238238
239-
evolving_noise = np.linspace(0, 1, 500) * np.random.rand(500)
239+
evolving_noise = np.linspace(0, 5, 500) * np.random.rand(500)
240240
mixed_signal_evolving = np.sin(t) + evolving_noise
241241
242242
plt.figure()
@@ -287,8 +287,7 @@ window_entropies_evolving = pipeline.fit_transform(windows_evolving)
287287
plt.figure()
288288
plt.plot(window_entropies_evolving.squeeze(), marker='s', linestyle='-', color=COLOR_ANOMALY, label="Entropia (Awaria)")
289289
plt.axhline(y=THRESHOLD, color='black', linestyle=':', label="Limit bezpieczeństwa")
290-
plt.fill_between(range(5), THRESHOLD, window_entropies_evolving.squeeze(),
291-
where=(window_entropies_evolving.squeeze() > THRESHOLD),
290+
plt.fill_between(np.arange(5), 4, 10,
292291
color=COLOR_ANOMALY, alpha=0.2, label="ALARM")
293292
plt.title("System wczesnego ostrzegania (TDA Alarm)")
294293
plt.xlabel("Numer okna")

0 commit comments

Comments
 (0)