I have made a figure using matplotlib's imshow function, and saved it to svg format. The image represents data from a grid of points, so it should be pixelated. If I open the svg in Inkscape I see that the image is indeed pixelated, as shown in the upper image in the attachment.
If I save the file as pdf and open the resulting pdf file in a pdf reader, the image has become smoothed, as shown in the lower image in the attachment.
Why does saving as pdf smooth the image, and how can I prevent this?
Why does saving as pdf smooth image generated by matplotlib?
-
- Posts: 1
- Joined: Thu Jun 19, 2014 3:04 pm
Re: Why does saving as pdf smooth image generated by matplot
Hi.
It is set that way by the program, but there are no user options for that.
Here is the solution how to prevent the embedded image from interpolated display in the pdf-s:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=15829#p59223
The on-screen rendering is not interpolated in the current stabile, but interpolated in the development builds.
It is set that way by the program, but there are no user options for that.
Here is the solution how to prevent the embedded image from interpolated display in the pdf-s:
http://www.inkscapeforum.com/viewtopic.php?f=5&t=15829#p59223
The on-screen rendering is not interpolated in the current stabile, but interpolated in the development builds.