Tuesday, June 16, 2009

Ultimate LaTeX plotting solution

After years of struggling with rubbish PNGs in pdf files (don't scale), the nightmares of running latex -> ps2pdf and the like just to get vector graphics, painful pstricks list of substitutions finally I found the ultimate plotting thing for LaTeX. It hasn't been around for too long, and it is pgfplots/TikZ.

There is even a matlab2tikz function that does a decent job at grabbing your current matlab figure, converting it to a pgfplots script and then you can go round and change things to make them pretty. It is king.