Skip to content

Commit

Permalink
Merge pull request #174 from toruseo/hotfix-World_show_network
Browse files Browse the repository at this point in the history
Fix `World.show_network()` file path bug
  • Loading branch information
toruseo authored Jan 9, 2025
2 parents 3af5673 + ade3bab commit c6c092d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion uxsim/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
from .analyzer import *
from .scenario_reader_writer import *

__version__ = "1.7.1"
__version__ = "1.7.2"
__author__ = "Toru Seo"
__copyright__ = "Copyright (c) 2023 Toru Seo"
__license__ = "MIT License"
3 changes: 3 additions & 0 deletions uxsim/uxsim.py
Original file line number Diff line number Diff line change
Expand Up @@ -2522,6 +2522,9 @@ def show_network(W, width=1, left_handed=1, figsize=(6,6), network_font_size=10,
node_size : int, optional
The size of the nodes in the visualization. Default is 6.
"""

os.makedirs(f"out{W.name}", exist_ok=True)

plt.rcParams["font.family"] = get_font_for_matplotlib()

plt.figure(figsize=figsize)
Expand Down

0 comments on commit c6c092d

Please sign in to comment.