added func to make a visualization of interaction matrix over time