Skip to content

Commit

Permalink
better link zorder behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
benmaier committed Jun 18, 2019
1 parent 72c5b99 commit 4fd3c26
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion netwulf/tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,8 @@ def draw_netwulf(network_properties, fig=None, ax=None, figsize=None, draw_links
pos = { node['id']: np.array([node['x_canvas'], height - node['y_canvas']]) for node in network_properties['nodes'] }

if draw_links:
zorder = max( _c.get_zorder() for _c in ax.get_children()) + 1
#zorder = max( _c.get_zorder() for _c in ax.get_children()) + 1
zorder = -1 # make sure that links are very much in the background

lines = []
linewidths = []
Expand Down

0 comments on commit 4fd3c26

Please sign in to comment.