From: Haibao T. <ba...@ug...> - 2004-12-06 21:55:01
|
Hi, I've run into a problem using matplotlib renderer to generate files. = My example is huge, so I implement it in another way to give the idea. - o - o - o - o - o - o - o - o - o - o - o - o - o - o=20 from matplotlib.matlab import * def draw_box(i): root =3D axes([0,0,1,1]) root.bar(.2,.5,.5,.2) root.text(.2, .1, "Give me a box %02i"%i) xlim(0,1) ylim(0,1) savefig("c:\\svg\\%02i.svg"%i) for i in xrange(1,10): clf() draw_box(i) - o - o - o - o - o - o - o - o - o - o - o - o - o - o=20 The resulting files are generated, yet except the first one, all the = rest miss the bar(); BUT, if I change the format to .png, no problem exists. Is it a bug? or am I doing it right? Much appreciated if you can point the problem out. Bao |