Skip to content

Commit

Permalink
activate subnetwork plotting
Browse files Browse the repository at this point in the history
  • Loading branch information
SouthEndMusic committed Mar 18, 2024
1 parent 7c60841 commit 943ff33
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions python/ribasim/ribasim/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,14 +260,13 @@ def plot(self, ax=None, indicate_subnetworks: bool = True) -> Any:

handles, labels = ax.get_legend_handles_labels()

# TODO
# if indicate_subnetworks:
# (
# handles_subnetworks,
# labels_subnetworks,
# ) = node.plot_allocation_networks(ax=ax, zorder=1)
# handles += handles_subnetworks
# labels += labels_subnetworks
if indicate_subnetworks:
(
handles_subnetworks,
labels_subnetworks,
) = node.plot_allocation_networks(ax=ax, zorder=1)
handles += handles_subnetworks
labels += labels_subnetworks

ax.legend(handles, labels, loc="lower left", bbox_to_anchor=(1, 0.5))

Expand Down

0 comments on commit 943ff33

Please sign in to comment.