I run FEniCS on an online linux server with python. I connect to the server using putty and use xming to plot graphs. I can close any graph plotted using matplotlib.pyplot; however, the graphs produced by FEniCS software persist until I quit the session.
The following code gives me a plot that can't be closed unless I disconnect from that session in putty.
from dolfin import *
mesh=UnitSquareMesh(5,5)
plot(mesh)
I have worked around this by computing the vertex values and plotting with matplotlib.pyplot. I would like to not be limited by this and use the dolfin plot command. How can I close the plots produced by dolfin?