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

faceted color=none has no effect if fill or opacity is used in surface plots #495

Open
FranzAtGithub opened this issue Nov 20, 2024 · 0 comments

Comments

@FranzAtGithub
Copy link

Hi there,

I feel like faceted color=none is broken in some situations.

Consider the code:

\documentclass{standalone}
\usepackage{pgfplots}
\pgfplotsset{compat=newest}


\begin{document}

\begin{tikzpicture}
    \begin{axis}

        % faceted color=none has no effect
        \addplot3 [
        domain y=0:2,
        domain=-2:2,
        surf,
        faceted color=none,
        fill=pink,
        opacity=0.2,
        samples y=20,
        samples=20,
        ] {0};

        % no use of faceted color
        % color is based on "function value"
        \addplot3 [
        domain y=0:2,
        domain=-2:2,
        surf,
        fill=pink,
        opacity=0.2,
        samples y=20,
        samples=20,
        ] {2};

        % removing only opacity
        % faceted color=none has no effect
        \addplot3 [
        domain y=0:2,
        domain=-2:2,
        surf,
        faceted color=none,
        fill=pink,
        samples y=20,
        samples=20,
        ] {4};

        % removing only fill
        % faceted color=none has no effect
        \addplot3 [
        domain y=0:2,
        domain=-2:2,
        surf,
        faceted color=none,
        opacity=0.2,
        samples y=20,
        samples=20,
        ] {6};

        % removing opacity and fill
        % only here does faceted color=none work
        \addplot3 [
        domain y=0:2,
        domain=-2:2,
        surf,
        faceted color=none,
        samples y=20,
        samples=20,
        ] {8};

    \end{axis}
\end{tikzpicture}

\end{document}

The option faceted color=none seems only to work when the options fill and opacity are not used.
Is there a work-around that I could use?

There is a related post on tex.stackexchange about this.

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

1 participant