Forgot to copy the list.

---------- Forwarded message ----------
From: Scott Sinclair <scott.sinclair...@gmail.com>
Date: 2009/9/2
Subject: Re: [Matplotlib-users] best format for MS word?
To: Shixin Zeng <zeng.shi...@gmail.com>


> 2009/9/2 Shixin Zeng <zeng.shi...@gmail.com>:
> Yes, the DPI i'm using is 300, and I tried to change it to 600, or
> 1200, but I can't see much difference.

Word seems to make PNG's very fuzzy when it needs to rescale them. Two
options I can think of are:

1. Try to size the figure so that Word imports it at 100% without
scaling (play with the following)

>>> import matplotlib.pyplot as plt
>>> fig = plt.figure()
>>> ax = fig.add_subplot(111)
>>> ax.plot([1,2,3])
>>> fig.set_size_inches((4, 3))
>>> plt.savefig('figure.png', dpi=600)

2. Save your figures as PDF's and view at large magnification in Adobe
Reader, then use the image select? tool to copy the image to your
clipboard. In Word Edit-Paste-Special as an enhanced metafile.

Cheers,
Scott

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to