Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shader=interp bug #433

Open
Atcold opened this issue Apr 5, 2022 · 3 comments
Open

shader=interp bug #433

Atcold opened this issue Apr 5, 2022 · 3 comments

Comments

@Atcold
Copy link

Atcold commented Apr 5, 2022

The option shader=inter gives different results on different PDF readers.
Is there a way to generate more reader-friendly outputs?
Perhaps exporting a PNG for these surfaces, while leaving the axis and the rest vectorial?
Also, when I export matplotlib figures in PDF I don't observe such distortions.
So, although I understand it's a viewer issue, other visualisation packages find an alternative.

From the manual last figure of section 4.8.3.

Adobe Acrobat
image

Mac Preview
image

From section 4.6.9

Adobe Acrobat
image
image

Mac Preview
image
image

@hmenke
Copy link
Member

hmenke commented Apr 5, 2022

In my experience Apple's PDF rendering engine is fundamentally broken. PGF as well has obscure problems with shadings which appear exclusively in Mac Preview (or any other viewer that uses Apple's PDF renderer, e.g. Skim), see pgf-tikz/pgf#833. But since their renderer is non-free, it's impossible to debug this. Raising an issue with Apple seems more appropriate, especially since Adobe Acrobat, the reference viewer for PDF, displays it correctly.

@Atcold
Copy link
Author

Atcold commented Apr 6, 2022

Thanks, @hmenke for your reply. Could you also address these points?

Perhaps exporting a PNG for these surfaces, while leaving the axis and the rest vectorial?
Also, when I export matplotlib figures in PDF I don't observe such distortions.
So, although I understand it's a viewer issue, other visualisation packages find an alternative.

@hmenke
Copy link
Member

hmenke commented Apr 6, 2022

Perhaps exporting a PNG for these surfaces, while leaving the axis and the rest vectorial?

Not possible. We make graphics by writing to the PDF stream directly without intermediate formats. This would also need engine support.

Also, when I export matplotlib figures in PDF I don't observe such distortions.

Sounds like you should use matplotlib then. ¯\_(ツ)_/¯

So, although I understand it's a viewer issue, other visualisation packages find an alternative.

And how does this alternative work? It sounds like you have insight. Care to explain?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants