visualization.get_partition_data

visualization.get_partition_data(
    psi2tree,
    *,
    bitmap=False,
    discrete=False,
    separate=False,
    is_sign_balanced=True,
    edge_level_type='average',
)

Get data for the partition plot.

Parameters

Name Type Description Default
psi2tree psiclone.psi2tree.Psi2tree A computed Psi2tree object. required
bitmap bool, optional (default: False) Treat the geometry to be a grid if True is set. Otherwise draw_geometry is called. False
discrete bool, optional (default: False) Use integer valued levels if True is set. This is useful when close levels are to be distinguished from eath other. False
separate bool, optional (default: False) Use separate integer valued levels if True is set. This is useful when some same levels in different components are to be distinguished from eath other. False

Returns

Name Type Description
partitioned_levels [float] A list of partitioned levels whose alignment is same as geometry.nodes.
vmin, vmax : float