visualisation.plot

Complex plotting functions.

bigbang.visualisation.plot.draw_adjacency_matrix(G, node_order=None, partitions=[], colors=[], cmap='Greys', figsize=(6, 6))
  • G is a networkx graph

  • node_order (optional) is a list of nodes, where each node in G

    appears exactly once

  • partitions is a list of node lists, where each node in G appears

    in exactly one node list

  • colors is a list of strings indicating what color each

    partition should be

If partitions is specified, the same number of colors needs to be specified.

bigbang.visualisation.plot.stack(df, partition=None, smooth=1, figsize=(12.5, 7.5), time=True, cm=<matplotlib.colors.ListedColormap object>)

Plots a stackplot based on a dataframe. Includes support for partitioning and convolution.

df - a dataframe partition - a (dictionary or list) of lists of columns of df

  • if dictionary, keys are used as labels

smooth - an integer amount of convolution