Closed gdmcbain closed 3 years ago
`if name == 'main':
import matplotlib.pyplot as plt
from skfem.visuals.matplotlib import plot3, show
def update(event):
t, u = event
for t, u in evolve(0.0, u_init):
plot3(m,u)
plt.show() `
plots me all the graphs but I want only the last one
Try moving the plotting outside the for
-loop:
for t, u in evolve(0.0, u_init):
pass
plot3(m,u)
plt.show()
Oh, I don't think you want plt.show
since you've already imported show
from skfem.visuals.matplotlib
, so just
show()
close the issue.thnka for everything.you are awesome
From #529 at 2020-12-24: