|
209 | 209 | }, |
210 | 210 | { |
211 | 211 | "cell_type": "code", |
212 | | - "execution_count": 7, |
| 212 | + "execution_count": null, |
213 | 213 | "id": "67c5aea4", |
214 | 214 | "metadata": { |
215 | 215 | "execution": { |
|
232 | 232 | } |
233 | 233 | ], |
234 | 234 | "source": [ |
235 | | - "ax = clean.plot(title=\"Clean synthetic sensor stream (no faults)\")\n", |
| 235 | + "ax = clean.plot(title=\"Clean synthetic sensor stream\")\n", |
236 | 236 | "ax.set_ylabel(\"reading\")\n", |
237 | | - "plt.tight_layout(); plt.show()" |
| 237 | + "plt.tight_layout()\n", |
| 238 | + "plt.show()" |
238 | 239 | ] |
239 | 240 | }, |
240 | 241 | { |
|
317 | 318 | }, |
318 | 319 | { |
319 | 320 | "cell_type": "code", |
320 | | - "execution_count": 9, |
| 321 | + "execution_count": null, |
321 | 322 | "id": "b5afeb69", |
322 | 323 | "metadata": { |
323 | 324 | "execution": { |
|
345 | 346 | "a1.plot(df.index, df[\"temperature\"], color=\"tab:red\")\n", |
346 | 347 | "a1.axvspan(df.index[stuck_start], df.index[stuck_start + 5], color=\"orange\", alpha=0.3,\n", |
347 | 348 | " label=\"stuck sensor (ANO001)\")\n", |
348 | | - "a1.set_ylabel(\"temperature\"); a1.legend(loc=\"upper right\")\n", |
| 349 | + "a1.set_ylabel(\"temperature\")\n", |
| 350 | + "a1.legend(loc=\"upper right\")\n", |
349 | 351 | "\n", |
350 | 352 | "a2.plot(df.index, df[\"humidity\"], color=\"tab:blue\")\n", |
351 | 353 | "a2.axvspan(df.index[gap_start], df.index[gap_start + 5], color=\"purple\", alpha=0.25,\n", |
352 | 354 | " label=\"outage gap (PRF002)\")\n", |
353 | | - "a2.set_ylabel(\"humidity\"); a2.legend(loc=\"upper right\")\n", |
| 355 | + "a2.set_ylabel(\"humidity\")\n", |
| 356 | + "a2.legend(loc=\"upper right\")\n", |
354 | 357 | "\n", |
355 | 358 | "fig.suptitle(\"Faulted sensor stream: frozen segment + outage gap\")\n", |
356 | | - "plt.tight_layout(); plt.show()" |
| 359 | + "plt.tight_layout()\n", |
| 360 | + "plt.show()" |
357 | 361 | ] |
358 | 362 | }, |
359 | 363 | { |
|
0 commit comments