My test code:
--------------------------------------------
1 from pylab import *
2
3 y = []
4 for x in range(0,10):
5 y.append(x*x)
6
7 plot(range(0,10), y)
8 savefig('fig_saved.png')
9 show()
--------------------------------------------
After running the above code, you should get the foll0wing figure saved by using savefig() function.

No comments:
Post a Comment