I recently learned Python and succesfully programmed Conway's game of life using numpy arrays. My problem is that I can't plot them. I can plot one array, but I don't know how to update the plot in the current matplotlib window as much as I want.
A funtion to calculate the next generation (takes a numpy array as argument and returns one too) and the start grid (numpy array) are given. I'm using Python 3.9.
I can't find a simple solution with a while loop that doesn't open a new window for every iteration. It shouldn't be that hard. Could anyone help me?
I have already found: Matplotlib: Animate 2D Array, but that doesn't work.