plottingutils#

Description

Useful code snippets for making commonly used plots in Raphtory.

Functions

ccdf(observations[, normalised])

Returns x coordinates and y coordinates for a ccdf (complementary cumulative density function) from a list of observations.

cdf(observations[, normalised])

Returns x coordinates and y coordinates for a cdf (cumulative density function) from a list of observations.

global_motif_heatplot(motifs[, cmap])

Out-of-the-box plotting of global motif counts corresponding to the layout in Motifs in Temporal Networks (Paranjape et al)

human_format(num)

Converts a number over 1000 to a string with 1 d.p and the corresponding letter.

lorenz(observations)

Returns x coordinates and y coordinates for a Lorenz Curve from a list of observations.

ordinal_number(number)

Returns ordinal number of integer input.

to_motif_matrix(motifs[, data_type])

Converts a 40d vector of global motifs to a 2d grid of motifs corresponding to the layout in Motifs in Temporal Networks (Paranjape et al)