|
From: Ryan K. <rya...@gm...> - 2006-02-06 22:00:30
|
Hey Robert, I think this is a great idea. I am using the usetex option on my system with great success and I would love to help others create these beautiful plots with gorgeous Latex fonts. The process depends on a few outside tools right now and that is where I would guess the problem is. I am using the xpdf option for distiller option: ps.usedistiller : xpdf Darren may have a better idea, but my suggestion would be to go through each of the steps in the figure generation process yourself and see if one particular tool or setting is causing your font ugliness. If you wanted to try this approach, go into python-root/site-packages/matplotlib/backends/backend_ps.py and put a pdb.set_trace() around line 1162, just before this line: if rcParams['ps.usedistiller'] =3D=3D 'xpdf': Then, when you call savefig, it will stop with a figure started in your temp directory (the value of psfile from the pdb prompt will tell you the exact location). There will be a ps file and a tex file in that location. If that ps file looks bad, you are going to need Darren's help. If the ps file looks good, the savefig process is basically going to call ps2pdf, pdftops, and then epstopdf (assuming you saved with a .eps extension). If you can take the ps file from the start of this process and execute each of these commands in turn, you should be able to see where things are going wrong. But, you may not be comfortable with all this, may not want to invest the time, or Darren may have a better idea. By the way, your website is linked as a how to on the scipy install and when I try and go there, I get a access forbidden error. (I get the same error if I try to follow the link in your signature pong.tamu.edu). Ryan On 2/6/06, Robert Hetland <he...@ta...> wrote: > > I have been following the discussions about getting LaTeX text > processing, I have tried it myself, and I have been unsuccessful. I > gave gnu-ghostscript, I have tried a number of different rc settings, > but nothing seems to work well. PNG output has very poor quality > text, EPS output chokes ghostscript, and PS output appears as nothing. > > I am sure I am doing something stupid. I just don't know which > stupid thing it is. > > Is there a place where all of the important issues are laid out? I > would like to see someone who understands all of the important issues > start a HOWTO on the scipy Wiki. I would contribute, after I get > going.. > > Short of that, any sort of conglomeration of information would be > very helpful. Thanks, > > -Rob > > ----- > Rob Hetland, Assistant Professor > Dept of Oceanography, Texas A&M University > p: 979-458-0096, f: 979-845-6331 > e: he...@ta..., w: http://pong.tamu.edu > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log fi= les > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=3Dlnk&kid=3D103432&bid=3D230486&dat= =3D121642 > _______________________________________________ > Matplotlib-users mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-users > |