diff options
| author | J08nY | 2025-11-21 12:14:11 +0100 |
|---|---|---|
| committer | J08nY | 2025-11-21 12:14:11 +0100 |
| commit | 4712ca03b48f694db75250ebcfb04bf3745c8605 (patch) | |
| tree | b82d27bcbe3debdc9836602e8bc3f6a7acb72a49 | |
| parent | ef35b38b8ebbf7228cb8baba20e44a48ca308c37 (diff) | |
| download | pyecsca-4712ca03b48f694db75250ebcfb04bf3745c8605.tar.gz pyecsca-4712ca03b48f694db75250ebcfb04bf3745c8605.tar.zst pyecsca-4712ca03b48f694db75250ebcfb04bf3745c8605.zip | |
Fix graph plot for old networkx.
| -rw-r--r-- | pyecsca/sca/re/epa.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pyecsca/sca/re/epa.py b/pyecsca/sca/re/epa.py index 2701b42..4ef1b74 100644 --- a/pyecsca/sca/re/epa.py +++ b/pyecsca/sca/re/epa.py @@ -147,7 +147,8 @@ def graph_plot_prepare( for n in graph.predecessors(node): queue.add(n) - nx.multipartite_layout(graph, subset_key="layer", store_pos_as="pos") + pos = nx.multipartite_layout(graph, subset_key="layer") + nx.set_node_attributes(graph, pos, "pos") for point in graph.nodes(): node = graph.nodes[point] |
