Commit b11e0fb8 authored by Håvard Eidnes's avatar Håvard Eidnes
Browse files

Merge branch 'newer-networkx' into 'master'

Adapt to newer networkx, which refuses hold=True argument.

See merge request !16
parents 5ef90f2c 67aae544
......@@ -208,7 +208,7 @@ class PlotUI:
node_size=PlotUI.nodesizes[type],
node_color=nodecolors,
alpha = nodealpha,
hold=True)
)
self.plottednodes[nodec] = nodes
......@@ -269,7 +269,7 @@ class PlotUI:
style=PlotUI.edgestyles[type],
alpha=ealpha,
arrows=False,
hold=True)
)
else:
self.edgec = nx.draw_networkx_edges(graph, pos=data['pos'],
edgelist=edges,
......@@ -278,7 +278,7 @@ class PlotUI:
style=PlotUI.edgestyles[type],
alpha=ealpha,
arrows=False,
hold=True)
)
if 'labels' in data:
color = 'k'
......@@ -292,7 +292,7 @@ class PlotUI:
font_size=fsize,
font_color=color,
alpha=1,
hold=True)
)
if 'edgelabels' in data and not edge_cmap:
self.elabelc = self._plot_edge_labels(graph,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment