2009-05-15

emperor: (Default)
2009-05-15 03:55 pm
Entry tags:

TMI Friday

It's one of those things one never talks about. So we all assume that the way we were taught our onanistic ritual is the One True Way. And then occasionally the taboo is broken, an we find we're wrong. So in the interests of finding out just how wrong:

[Poll #1400393]

Read more... )
emperor: (Default)
2009-05-15 06:41 pm
Entry tags:

ps / pdf / ghostscript question

Suppose for a moment, I have a 13.5 million-point data file that I want to plot as a scatter-plot. gnuplot will happily produce a plot for me, although it takes a little while, and I need a fair bit of RAM.

The resulting .ps file is 212M, however, and makes evince thrash for absolutely ages before displaying it. Converting it to PDF just makes matters worse (up to 275M). I want to be able to include this figure in a pdfLaTeX document.

Annoyingly, runes of the form time gs -r600 -sDEVICE=pdfwrite -sOutputFile=foo-600.pdf -dNOPAUSE -dSAFER -dBATCH foo.ps actually make matters worse - the resulting PDF is even bigger!

Surely there must be an easy way to simplify ps or PDF files? presumably I could force gs to rasterize by outputting to PNG and then converting back to PDF (how?), but that seems a deeply ugly hack...