Qy = np.load(‘/home/hugke729/Downloads/Qy.npy’) #2 D Array

fig, ax = plt.subplots(figsize=(5,3))

def HydrographAnimation(Qy):

graph, = ax.plot(Qy[0,:])

return graph

def animate(i):

graph.set_ydata(Qy[i,:])

anim = FuncAnimation(fig,animate,interval = 10, repeat=True, frames=192)

graph = HydrographAnimation(Qy)

]]>the 2d Array(Qy) can be accessed via above link ]]>

import numpy as np

import matplotlib.pyplot as plt

from matplotlib.animation import FuncAnimation

%matplotlib notebook

Qy = np.load(“Qy.npy”) #2 D Array

def HydrographAnimation(a):

fig, ax = plt.subplots(figsize=(5,3))

graph, = ax.plot(a[0,:])

def animate(i):

graph.set_ydata(a[i,:])

anim = FuncAnimation(fig,animate,interval = 10) #interval = 200,repeat = True

HydrographAnimation(Qy)

]]>