import numpy as np
import matplotlib.pyplot as plt
import teneto
G = np.zeros([4, 4, 3])
G[0, 1, [0, 2]] = 1
G[0, 3, [2]] = 1
G[1, 2, [1]] = 1
G[2, 3, [1]] = 1
fig,ax = plt.subplots(1)
teneto.plot.slice_plot(G,ax,nodelabels=[0,1,2,3],timelabels=[0,1,2],cmap='Set2')
plt.tight_layout()
fig.show()