Here is sample code demonstrating the problem I'm having with
pyhd5/numpy/matplotlib
import h5py
import numpy
import re
import sys
import os
import gtk
import pdb
import gc
from matplotlib.figure import Figure
from matplotlib.backends.backend_gtkagg import FigureCanvasGTKAgg as
FigureCanvas
Yes, for efficiency reasons matplotlib will use a reference to original
data whenever possible, rather than copying it. Also, when using the
pylab/pyplot API, matplotlib figures also stay around until they are
explicitly deleted. You may need an explicit call to "clf('all')" to
remove the fig
There is definitely something wrong with matplotlib/numpy. Consider the
following
>from numpy import *
>mydata=memmap('map.dat',dtype=float64,mode='w+',shape=56566500)
> del mydata
I can now remove the file map.dat with (from the command line) $rm map.dat
However
If I plot mydata before the line