From 0ee110f7a0ea241c14184056c516714e30493478 Mon Sep 17 00:00:00 2001 From: Matteo Grasso Date: Thu, 14 Nov 2024 17:21:59 -0600 Subject: [PATCH] Limit plotting to 2 and 3 relations This is just a suggestion, please feel free to reject and do it in a better way --- pyphi/visualize/phi_structure/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pyphi/visualize/phi_structure/__init__.py b/pyphi/visualize/phi_structure/__init__.py index 9de99b235..4854fdf9f 100644 --- a/pyphi/visualize/phi_structure/__init__.py +++ b/pyphi/visualize/phi_structure/__init__.py @@ -165,6 +165,8 @@ def plot_phi_structure( ) # Relations + relations = [r for r in phi_structure.relations if len(r)<4] + relations = pyphi.new_big_phi.ConcreteRelations(relations) if theme["show"].get("two_faces") or theme["show"].get("three_faces"): two_faces = relation_two_faces three_faces = relation_three_faces