I have recently been using Matplotlib to create graphics for a paper I am writing. One thing that has been bugging me, though, was a quirk in imshow
which caused aliasing in the PDF exports of my images. I had assumed this wouldn’t be an issue based on the fact that PDF is a vector format and should easily be able to handle low-resolution images, and that the PDF, SVG, and AGG backends are specifically called out in the documentation for imshow
‘s interpolation
parameter.
Searching online was yielding no results. One of the two Stack Exchange posts I found was a different problem where border pixels were being cut off. The other appeared to be the same problem I was experiencing, but the answers only catered toward exporting bitmaps. (I ended up adding an answer there too.)
Leave a Reply