Skip to content

Commit 445c3aa

Browse files
authored
Fix ModuleNotFoundError when saving plot on Windows (#305)
1 parent e8fa280 commit 445c3aa

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/pathpyG/visualisations/plot_function.py

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -95,15 +95,15 @@ def is_backend(backend: str) -> bool:
9595

9696
# supported file formats
9797
FORMATS: dict = {
98-
".html": Backends.d3js,
99-
".tex": Backends.tikz,
100-
".pdf": Backends.tikz,
101-
".svg": Backends.tikz,
102-
".png": Backends.matplotlib,
103-
".jpg": Backends.matplotlib,
104-
".jpeg": Backends.matplotlib,
105-
".mp4": Backends.manim,
106-
".gif": Backends.manim,
98+
".html": Backends.d3js.value,
99+
".tex": Backends.tikz.value,
100+
".pdf": Backends.tikz.value,
101+
".svg": Backends.tikz.value,
102+
".png": Backends.matplotlib.value,
103+
".jpg": Backends.matplotlib.value,
104+
".jpeg": Backends.matplotlib.value,
105+
".mp4": Backends.manim.value,
106+
".gif": Backends.manim.value,
107107
}
108108

109109
# Supported Plot Classes

0 commit comments

Comments
 (0)