pele.utils.disconnectivity_graph.DisconnectivityGraph.label_minima

DisconnectivityGraph.label_minima(minima_labels, axes=None, rotation=60.0, **kwargs)[source]

label the specified minima

Parameters :

minima_labels: dict

dictionary with minima as keys and labels as values. i.e. label = minima_labels[minimum]

axes: matplotlib axis object, optional

The axes we are working on

rotation: float

angle (in degrees) of how much to rotate the text

kwargs: kwargs

additional keyword arguments are passed on to matplotlib ax.set_xticklabels()

Notes

if the labels are outside of the figure bounding box you can fix it with plt.tight_layout() or fig.tight_layout()

Previous topic

pele.utils.disconnectivity_graph.DisconnectivityGraph.get_tree_layout

Next topic

pele.utils.disconnectivity_graph.DisconnectivityGraph.plot