Why does saving as pdf smooth image generated by matplotlib?

Post questions on how to use or achieve an effect in Inkscape.
danielsank
Posts: 1
Joined: Thu Jun 19, 2014 3:04 pm

Why does saving as pdf smooth image generated by matplotlib?

Postby danielsank » Thu Jun 19, 2014 3:21 pm

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?

example.svg
(214.48 KiB) Downloaded 169 times

Lazur
Posts: 4717
Joined: Tue Jun 14, 2016 10:38 am

Re: Why does saving as pdf smooth image generated by matplot

Postby Lazur » Thu Jun 19, 2014 9:31 pm

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.


Return to “Help with using Inkscape”