Using matplotlib to create graph without displaying it.

First of all, one of the easiest graph package yet fill with tons of
capability and future potential.

Now my issue:

1. I am trying to integrate matplot with quixote. It fails because of gtk (I think). How can I use matplot without gui requirement.

2. I am trying to save an image without showing it. Here is small program

···

**************************************************************
from matplotlib.matlab import *
plot([1,2,3])
savefig('test.png')
#show()

***************************************************************

This does not create test.png file, but if I uncomment last line, it create
test.png file. How can I create a test.png file without showing it?

_________________________________________________________________
Enjoy MSN 8 patented spam control and more with MSN 8 Dial-up Internet Service. Try it FREE for one month! http://join.msn.com/?page=dept/dialup