DisconnectivityGraph.color_by_value(minimum_to_value, colormap=None, normalize_values=True)[source]

color the graph by values associated with minima (e.g. order parameter)

Parameters :

minimum_to_value: callable

A function that accepts a minimum and returns a float value. return None to indicate no color for this minimum

colormap: callable, optional

function which converts a float in (0,1) to a matplotlib color (RGB)

normalize_values: bool

if True the values will be normalized to fall between 0 and 1


Each node in the graph will be colored according to the value of the child minimum with the largest value. If any child minimum has value None then the node will not be colored

Previous topic


Next topic