We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7496e14 commit a87611fCopy full SHA for a87611f
src/autoencoder/data/visualize.py
@@ -11,6 +11,21 @@
11
from numpy.typing import NDArray
12
13
14
+def set_background_style(style: str) -> None:
15
+ """Set MatplotLib plot background style."""
16
+ plt.style.use(style)
17
+
18
19
+def toggle_dark_mode() -> None:
20
+ """Turn on dark mode."""
21
+ set_background_style("dark_background")
22
23
24
+def toggle_light_mode() -> None:
25
+ """Turn on light mode."""
26
+ set_background_style("default")
27
28
29
def training_loss_history(
30
history: Dict[str, List[float]], model_name: str = "Autoencoder"
31
) -> None:
@@ -144,3 +159,7 @@ def plot_anomalous_images(
144
159
145
160
# close after plot
146
161
plt.close()
162
163
164
+# toggle dark mode by default
165
+toggle_dark_mode()
0 commit comments