3 ms·
Curious. I wonder what Matplotlib does that's so bad? If it's merely being pathological, then compressing the PDFs with JBIG2 would make them potentially even s
by gwern 5y ago
Curious. I wonder what Matplotlib does that's so bad? If it's merely being pathological, then compressing the PDFs with JBIG2 would make them potentially even smaller. (I usually do that with 'ocrmypdf', which doesn't have to OCR your PDF.)
- mkl 5y agoDepends on your PDF and your goals, I think. JBIG2 is for raster data, but Matplotlib outputs vector images by default when producing PDFs. Rasterising may help with things like huge numbers of points that hide each other, but at the cost of sharpness and scalability.