Re: [Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Jae-Joon Lee
with hold=False, the axes is reset whenever something new is added to the axes. Instead of using pylab.hold(False), clear the figure or axes explicitly (clf() or cla()) -JJ On Mon, Oct 5, 2009 at 9:58 PM, Ross Anderson wrote: > Hi all, > > I'm making multiple semilogy histograms, which for now

[Matplotlib-users] semilogy seems to only work once

2009-10-05 Thread Ross Anderson
Hi all, I'm making multiple semilogy histograms, which for now are on separate figures and not in subplots. Here's something patched together: def makehistogram(data,strtitle, filename): fig = Figure() pylab.hold(False) pylab.semilogy(base=10) n, bins, patches = pylab.hist(data, 50