Correct.
On Tue, May 28, 2013 at 9:42 AM, zetah wrote:
> Albert Kottke wrote:
> >
> >I had this problem as well. I think my solution was to tell the
> >garbage collector to collect.
> >
> >import gc
> >import numpy as np
> >import matplot
I had this problem as well. I think my solution was to tell the garbage
collector to collect.
import gc
import numpy as np
import matplotlib.pyplot as plt
def draw_fig(arr, fn):
fig = plt.figure()
ax = fig.add_subplot(111)
ax.contourf(arr)
plt.savefig(fn)
plt.close(fig)
gc
I am having problems clearing figures from memory. After saving the
figure, I use pyplot.close() on the figure handle and then del all of
the data and figure, as shown here:
fig.savefig('plots/%(record_id)05i' % recording)
plt.close(fig)
del accel, fourier_amp, fig, time, disp
gc.collect()
Despi
As the subject states, I am trying to use a geotiff (shaded relief)
that I have downloaded from seamless.usgs.gov as the background in a
map. Mostly I am just confused about the seamless image projection and
bounds. The metadata defines the latitude of the top and bottom, and
longitude of the left