import teneto
import numpy as np
import matplotlib.pyplot as plt
np.random.seed(2017) # For reproduceability
N = 5 # Number of nodes
T = 10 # Number of timepoints
birth_rate = 0.25
G = teneto.generatenetwork.rand_binomial([N,N,T], [birth_rate])
fig,ax = plt.subplots(figsize=(10,3))
ax = teneto.plot.slice_plot(G, ax, cmap='Set2')
fig.tight_layout()
fig.show()