peculiar behavior of matplotlib function errorbar

Hello to all,
I have found a peculiar behavior of matplotlib function errorbar.
See the code below and execute it all in once.
What I get is that first image is ok.
Second one loses all errorbar vertical line.
I noticed that while i was generating some graphs with errorbar in a for cycle
and i tried to plot also some dots over each one.

import pylab as p

p.figure(1)
p.errorbar([1,2,3,4],[1,2,3,4],[4,2,5,3])
p.hold(True)
# here plot what you wants
p.hold(False)
p.savefig('test_1.png')
p.close()

p.figure(1)
p.errorbar([1,2,3,4],[1,2,3,4],[4,2,5,3])
p.hold(True)
# here plot what you wants
p.hold(False)
p.savefig('test_2.png')
p.close()

test_1.png

test_2.png

ยทยทยท

--
--
Emanuele Passera