Re: [matplotlib-devel] Setting dpi in savefig has unexpected results for PDFs

2010-07-17 Thread Tony S Yu
On Jul 16, 2010, at 4:08 PM, Eric Firing wrote: > On 07/16/2010 09:45 AM, Tony S Yu wrote: >> I recently noticed that setting the dpi for savefig doesn't work as >> expected when saving to pdf. Take the following code, for example: >> > import matplotlib.pyplot as plt > > plt.figure

Re: [matplotlib-devel] Setting dpi in savefig has unexpected results for PDFs

2010-07-16 Thread Eric Firing
On 07/16/2010 09:45 AM, Tony S Yu wrote: > I recently noticed that setting the dpi for savefig doesn't work as > expected when saving to pdf. Take the following code, for example: > > >>> import matplotlib.pyplot as plt > >>> > >>> plt.figure(figsize=(8,6)) > >>> plt.plot([1,2]) > >>> plt.save

[matplotlib-devel] Setting dpi in savefig has unexpected results for PDFs

2010-07-16 Thread Tony S Yu
I recently noticed that setting the dpi for savefig doesn't work as expected when saving to pdf. Take the following code, for example: >>> import matplotlib.pyplot as plt >>> >>> plt.figure(figsize=(8,6)) >>> plt.plot([1,2]) >>> plt.savefig('test.png', dpi=100) >>> plt.savefig('test.pdf', dpi=1