From: Ethan A M. <me...@uw...> - 2023-06-13 00:13:24
|
On Saturday, 10 June 2023 17:24:37 PDT Dima Kogan wrote: > > Actually, okular doesn't fully work either. > > I'm currently writing a presentation where I'm using pdflatex and I'm > including gnuplot figures. In that context okular shows the bands also. > Maybe pdflatex is also buggy, but if mupdf AND evince AND pdflatex have > this bug, maybe we should try to work around it. gv is still ok. > > You can see this for yourself probably. I downloaded this figure that > was generated by gnuplot: > > https://urldefense.com/v3/__http://mrcal.secretsauce.net/external/figures/diff/diff-radius0-heatmap-splined-opencv8.pdf__;!!K-Hz7m0Vt54!lfFwuvLqC5ID1P35DtMpTPxIqwIhHjrPNe0d_k_Uqz17nVeq07BR5n-UHuapjVlxgaL_-jJNDFaxrT6V_3nGHg$ > > And ran "pdflatex tst.tex" where tst.tex is: > > \documentclass[presentation]{beamer} > \begin{document} > \includegraphics[keepaspectratio,width=0.9\textwidth,height=0.7\textheight]{/tmp/diff-radius0-heatmap-splined-opencv8.pdf} > \end{document} > > The result is attached. I see the bands even with okular. I do not see any such problem in the output from either pdflatex or lualatex as run here. [~/temp] pdflatex --version pdfTeX 3.141592653-2.6-1.40.24 (TeX Live 2022/Mageia) [~/temp] lualatex --version This is LuaHBTeX, Version 1.15.0 (TeX Live 2022/Mageia) Development id: 7509 So again, I do not think the problem is in gnuplot but rather in the pdf processing stage that comes after that. ... Which is not to say it is impossible to change gnuplot in such a way that it does not trigger bugs in other programs. But I'm not all that hopeful; variations of this sort of aliasing glitch persisted for years (decades?) in ghostview / gv despite it being a known and well-characterized bug. Output from pdflatex attached. Ethan |