[Matplotlib-users] saving images as .pdf files

2007-07-30 Thread J Makem
Hi, I'm havind difficulty plotting saving pylab images in pdf format. At the moment, they are saved as .png files by default using: savefig('name',dpi=300) However, if I try: savefig('name.pdf') The program crashes. Is there anyway of solving this problem? Regards, Jony--

[Matplotlib-users] Modifying Grid Size

2007-07-20 Thread J Makem
Hi, I wanted to plot a graph with a grid background and an x axis ranging from 0 -16 and a y axis ranging from 0 -16. I used the following code: from pylab import* xlabel('time (s)') ylabel('voltage (mV)') title('About as simple as it gets, folks') grid(True) axis([-16,16,-16,16]) show() How