PDF not readable by Adobe PDF readers

buckeliger <buckeliger@...1175...> writes:

Hey, thx for the reply. The OS is hardly the problem as with the same input
files I can generate plots that work also in acroread.

Also, the file you linked to from the Stackoverflow question is just
72kB (and 84kB when uncompressed with pdftk) so it's definitely not
going over any multi-gigabyte limit.

I can confirm that Adobe Reader 8 on OS X fails to show anything when
opening the file, and also does not display any error messages.
Preview.app displays a reasonable-looking plot. I'm at a loss to explain
what is wrong about this file.

The problem occurs only if the data is being processed; if I
only read out the data and plot it, then there is no problem with Adobe
viewers.

Since what gets plotted is not a huge amount of data, I wonder if you
could still make a minimal example by doing the computations but instead
of plotting the resulting data storing it somehow (in e.g. a pickle, or
a small hdf5 file). Then make a separate script that reads the stored
data and calls matplotlib functions, and if that can reproduce the
problem it would help us in debugging.

···

--
Jouni K. Sepp�nen

Thank you for your reply. I am travelling these days and will try to generate
a stripped down input data file out of the 12 large hdf5 files. However I
find it still very curious that with the same input files, plotting simply
read out data plotting works

http://ubuntuone.com/50q1yVOKjdmhfqpQljUwW8

but when I process the data (I mask bins and calculate means within) the
mentioned problem occurs (same file as in stackoverflow)

http://ubuntuone.com/0kuZIKYeZQyGckE5jonPy6

so to me it seems reasonable to assume it is actually related to the
computational effort involved. The script for the latter plot takes approx.
30min on a quite fast machine, while upper plot takes no more than 15sec.

Anyhow, next week I will work on the stripped down data and share what I
get.

···

--
View this message in context: http://matplotlib.1069221.n5.nabble.com/PDF-not-readable-by-Adobe-PDF-readers-tp42580p42595.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.

If you have Cairo installed and the matplotlib Cairo backend you could try to test the

pdfs generated with this backend to see if they suffer from the same issue.

i.e. add


import matplotlib

matplotlib.use("cairo")

<details class='elided'>
<summary title='Show trimmed content'>&#183;&#183;&#183;</summary>

to the top of your script.

Depending on where the bug is this may or may not give the same issue.

/Jens

On Fri, Dec 6, 2013 at 10:22 AM, buckeliger <buckeliger@…1175…> wrote:

Thank you for your reply. I am travelling these days and will try to generate

a stripped down input data file out of the 12 large hdf5 files. However I

find it still very curious that with the same input files, plotting simply

read out data plotting works

http://ubuntuone.com/50q1yVOKjdmhfqpQljUwW8

but when I process the data (I mask bins and calculate means within) the

mentioned problem occurs (same file as in stackoverflow)

http://ubuntuone.com/0kuZIKYeZQyGckE5jonPy6

so to me it seems reasonable to assume it is actually related to the

computational effort involved. The script for the latter plot takes approx.

30min on a quite fast machine, while upper plot takes no more than 15sec.

Anyhow, next week I will work on the stripped down data and share what I

get.

View this message in context: http://matplotlib.1069221.n5.nabble.com/PDF-not-readable-by-Adobe-PDF-readers-tp42580p42595.html
Sent from the matplotlib - devel mailing list archive at Nabble.com.


Sponsored by Intel(R) XDK

Develop, test and display web and hybrid apps with a single code base.

Download it for free now!

http://pubads.g.doubleclick.net/gampad/clk?id=111408631&iu=/4140/ostg.clktrk


Matplotlib-devel mailing list

Matplotlib-devel@lists.sourceforge.net

https://lists.sourceforge.net/lists/listinfo/matplotlib-devel