Skip to content

Commit

Permalink
add alpha to colorbars
Browse files Browse the repository at this point in the history
  • Loading branch information
kbonney committed Nov 26, 2024
1 parent a3b2576 commit c267ac1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions wntr/graphics/network.py
Original file line number Diff line number Diff line change
Expand Up @@ -255,6 +255,7 @@ def plot_network(
link_cbar_kwds["shrink"] = 0.5
link_cbar_kwds["pad"] = 0.05
link_cbar_kwds["label"] = link_colorbar_label
link_cbar_kwds["alpha"] = link_alpha

# process node attribute
node_kwds = _prepare_attribute(node_attribute, node_gdf)
Expand Down Expand Up @@ -286,6 +287,7 @@ def plot_network(
node_cbar_kwds = {}
node_cbar_kwds["shrink"] = 0.5
node_cbar_kwds["pad"] = 0.0
node_cbar_kwds["alpha"] = node_alpha
node_cbar_kwds["label"] = node_colorbar_label

# plot nodes - each type is plotted separately to allow for different marker types
Expand Down

0 comments on commit c267ac1

Please sign in to comment.