On 06/27/2010 08:06 AM, Eliss Parke wrote: > I'm creating charts in matplotlib and saving them using > savefig('chart.eps'). How can I make the labels actually be text rather > than paths, which seems to be the default? (when I open the .eps files > in Illustrator, I can't edit them as text)
When you say "labels", are you referring to the tick labels? If so, near the top of your script, try: import matplotlib matplotlib.rcParams['axes.unicode_minus'] = False Otherwise all tick labels are treated as unicode by default, and unicode is rendered in the ps backend as a sequence of glyphs rather than as a single text string. You might also consider using matplotlib to write pdf files instead of ps. The eps format is older and more limited in its capabilities than pdf. You can always convert pdf to eps as a last step, if eps is what you ultimately need. I've never used Illustrator, but I presume it can happily import pdf and export eps. Eric > > I'm using the latest matplotlib and python on Windows XP. > > Thanks > Eliss > > > > ------------------------------------------------------------------------------ > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > > > > _______________________________________________ > Matplotlib-users mailing list > Matplotlib-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-users ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ Matplotlib-users mailing list Matplotlib-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-users