File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ def dependency_graph():
3636 name = st .radio ("Select parameter / expression" , graph .dependent_names )
3737 G = graph .dependency_graph (name )
3838 P = nx .nx_pydot .to_pydot (G )
39- with tempfile .NamedTemporaryFile (suffix = ".png " ) as temp :
40- P .write_png (temp .name )
39+ with tempfile .NamedTemporaryFile (suffix = ".svg " ) as temp :
40+ P .write_svg (temp .name )
4141 st .image (temp .name )
4242
4343
@@ -49,8 +49,8 @@ def inv_dependency_graph():
4949 name = st .radio ("Select parameter / expression" , graph .inv_dependent_names )
5050 G = graph .inv_dependency_graph (name )
5151 P = nx .nx_pydot .to_pydot (G )
52- with tempfile .NamedTemporaryFile (suffix = ".png " ) as temp :
53- P .write_png (temp .name )
52+ with tempfile .NamedTemporaryFile (suffix = ".svg " ) as temp :
53+ P .write_svg (temp .name )
5454 st .image (temp .name )
5555
5656
You can’t perform that action at this time.
0 commit comments