From ae65d09e7fba1969c9630144422e14340d411008 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 1 Aug 2016 15:10:28 -0700 Subject: [PATCH] Give dimension as keyword arg Is this going to fix errors with different versions of networkx? I don't know -- I'm on a plane mate. --- abp/fancy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abp/fancy.py b/abp/fancy.py index c8d1c25..3178596 100644 --- a/abp/fancy.py +++ b/abp/fancy.py @@ -50,7 +50,7 @@ class GraphState(graphstate.GraphState, networkx.Graph): def layout(self): """ Automatically lay out the graph """ - pos = networkx.spring_layout(self, 3, scale=np.sqrt(self.order())) + pos = networkx.spring_layout(self, dim=3, scale=np.sqrt(self.order())) middle = np.average(pos.values(), axis=0) pos = {key: value - middle for key, value in pos.items()} for key, (x, y, z) in pos.items():