pyphi.visualize.highlight_phi_fold#
- pyphi.visualize.highlight_phi_fold(ces_, phi_fold=None, *, theme=Theme(colorscale='Viridis', node_size_range=(10.0, 36.0), edge_color='rgba(60, 60, 60, 0.4)', edge_width=2.0, font_family='Helvetica, Arial, sans-serif', background='white', role_colors=(('extended', '#e6b422'), ('includes', '#2f6fdb'), ('included', '#d85a46'), ('none', '#b0b0b0')), cause_color='#8D3D00', effect_color='#006146', face_colorscale='Blues', face_opacity=0.2, text_size=12, spoke_width=1.5, spoke_curvature=0.0, spoke_color='rgba(100, 100, 100, 0.45)', hub_size_range=(4.0, 22.0), relation_rgb=(35, 45, 200), relation_alpha_range=(0.06, 0.95)), node_labels=None, fig=None, geometry=None, show=None, max_relations=None)[source]#
Plot a cause-effect structure dimmed, highlighting a phi-fold.
Call with a single
PhiFoldto highlight it against its ownparent, or with(ces_, phi_fold)to highlight any object with adistinctionsattribute against an explicit structure.- Parameters:
ces (CauseEffectStructure or PhiFold) – The full cause-effect structure, or a fold (whose
parentsupplies the background).phi_fold (object, optional) – An object with a
distinctionsattribute giving the distinctions to highlight; they are matched to the structure’s by mechanism. Omit whences_is a fold.theme (Theme, optional) – Visual theme for the highlighted fold; the dimmed background style is derived from it.
node_labels (NodeLabels, optional) – Labels for substrate units.
fig (plotly.graph_objects.Figure, optional) – An existing plotly figure to draw into.
geometry (HypergraphGeometry, optional) – Layout knobs.
max_relations (int, optional) – Render only the strongest
max_relationsrelations by φ_r; defaults to the strongest 1000 for analytically-computed relations.
- Raises:
TypeError – If called with a single argument that is not a
PhiFold.