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

3D plots in PDFs generated with interp shading disappear from SVG #265

Closed
rlkamalapurkar opened this issue Mar 8, 2024 · 1 comment
Closed
Assignees
Labels

Comments

@rlkamalapurkar
Copy link

I generated a PDF file using

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=1.18}
\begin{document}
    \begin{tikzpicture}
        \begin{axis}
            \addplot3[ surf, shader=interp, samples=10, domain=0:1, ]{x^2*y};
        \end{axis}
    \end{tikzpicture}
\end{document}

and converted it to SVG using dvisvgm --pdf document.pdf. The resulting SVG file only has the axis lines, but the surface plot is gone.

@mgieseki
Copy link
Owner

mgieseki commented Mar 8, 2024

dvisvgm doesn't support shading patterns as used for PDF gradient fills. So it's currently not possible to fully convert PDF or EPS files that contain these kind of patterns.

@mgieseki mgieseki self-assigned this Mar 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants