Restricting Domain of 3D Plot












3















I have this 3D plot:



enter image description here



I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



Here is a MWE:



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
]
{12*exp(-(4*x+3*y))};

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

%line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

end{axis}
end{tikzpicture}

end{document}


I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?










share|improve this question


















  • 1





    Maybe add a link to the previous question. This is a follow-up, or not?

    – Dr. Manuel Kuehner
    Feb 26 at 10:27











  • Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

    – Aiden Kenny
    Feb 26 at 10:33
















3















I have this 3D plot:



enter image description here



I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



Here is a MWE:



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
]
{12*exp(-(4*x+3*y))};

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

%line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

end{axis}
end{tikzpicture}

end{document}


I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?










share|improve this question


















  • 1





    Maybe add a link to the previous question. This is a follow-up, or not?

    – Dr. Manuel Kuehner
    Feb 26 at 10:27











  • Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

    – Aiden Kenny
    Feb 26 at 10:33














3












3








3


1






I have this 3D plot:



enter image description here



I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



Here is a MWE:



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
]
{12*exp(-(4*x+3*y))};

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

%line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

end{axis}
end{tikzpicture}

end{document}


I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?










share|improve this question














I have this 3D plot:



enter image description here



I would like to plot the function only over the region over the darker half of the bottom (the part closer to us).



Here is a MWE:



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
]
{12*exp(-(4*x+3*y))};

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);

%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

%line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75] (x,x,{12*exp(-(7*x))});

end{axis}
end{tikzpicture}

end{document}


I tried to use y domain = 0:x, but that does not even compile (it takes too long and then craps out). Any suggestions?







tikz-pgf pgfplots 3d






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Feb 26 at 10:13









Aiden KennyAiden Kenny

4437




4437








  • 1





    Maybe add a link to the previous question. This is a follow-up, or not?

    – Dr. Manuel Kuehner
    Feb 26 at 10:27











  • Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

    – Aiden Kenny
    Feb 26 at 10:33














  • 1





    Maybe add a link to the previous question. This is a follow-up, or not?

    – Dr. Manuel Kuehner
    Feb 26 at 10:27











  • Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

    – Aiden Kenny
    Feb 26 at 10:33








1




1





Maybe add a link to the previous question. This is a follow-up, or not?

– Dr. Manuel Kuehner
Feb 26 at 10:27





Maybe add a link to the previous question. This is a follow-up, or not?

– Dr. Manuel Kuehner
Feb 26 at 10:27













Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

– Aiden Kenny
Feb 26 at 10:33





Haha it actually is the same question I'm working on, but the nature of this TeX problem I'm having is different from the last.

– Aiden Kenny
Feb 26 at 10:33










1 Answer
1






active

oldest

votes


















6














Something like this? (Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified, i.e. the coordinates in clip need to be prepended with axis cs:,
clip plot[variable=x,domain=0:1.5] (axis cs:x,x,{f(x,x)})
-- (axis cs:1.5,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(0,0)});
. )



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}[declare function={f(x,y)=12*exp(-(4*x+3*y));}]

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

begin{scope}
clip plot[variable=x,domain=0:1.5] (x,x,{f(x,x)})
-- (1.5,0,{f(1.5,1.5)}) -- (0,0,{f(1.5,1.5)}) -- (0,0,{f(0,0)});
addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
] {f(x,y)};
end{scope}

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);


%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75]
(x,x,{f(x,x)});

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer





















  • 1





    +1: This will go in to by code bucket :)

    – Dr. Manuel Kuehner
    Feb 26 at 15:59






  • 1





    Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

    – Aiden Kenny
    Feb 26 at 19:50








  • 2





    @AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

    – marmot
    Feb 26 at 19:56











  • @AidenKenny Thanks for spotting this! It was indeed very misleading.

    – marmot
    Feb 26 at 20:16













Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476729%2frestricting-domain-of-3d-plot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









6














Something like this? (Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified, i.e. the coordinates in clip need to be prepended with axis cs:,
clip plot[variable=x,domain=0:1.5] (axis cs:x,x,{f(x,x)})
-- (axis cs:1.5,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(0,0)});
. )



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}[declare function={f(x,y)=12*exp(-(4*x+3*y));}]

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

begin{scope}
clip plot[variable=x,domain=0:1.5] (x,x,{f(x,x)})
-- (1.5,0,{f(1.5,1.5)}) -- (0,0,{f(1.5,1.5)}) -- (0,0,{f(0,0)});
addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
] {f(x,y)};
end{scope}

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);


%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75]
(x,x,{f(x,x)});

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer





















  • 1





    +1: This will go in to by code bucket :)

    – Dr. Manuel Kuehner
    Feb 26 at 15:59






  • 1





    Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

    – Aiden Kenny
    Feb 26 at 19:50








  • 2





    @AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

    – marmot
    Feb 26 at 19:56











  • @AidenKenny Thanks for spotting this! It was indeed very misleading.

    – marmot
    Feb 26 at 20:16


















6














Something like this? (Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified, i.e. the coordinates in clip need to be prepended with axis cs:,
clip plot[variable=x,domain=0:1.5] (axis cs:x,x,{f(x,x)})
-- (axis cs:1.5,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(0,0)});
. )



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}[declare function={f(x,y)=12*exp(-(4*x+3*y));}]

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

begin{scope}
clip plot[variable=x,domain=0:1.5] (x,x,{f(x,x)})
-- (1.5,0,{f(1.5,1.5)}) -- (0,0,{f(1.5,1.5)}) -- (0,0,{f(0,0)});
addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
] {f(x,y)};
end{scope}

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);


%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75]
(x,x,{f(x,x)});

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer





















  • 1





    +1: This will go in to by code bucket :)

    – Dr. Manuel Kuehner
    Feb 26 at 15:59






  • 1





    Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

    – Aiden Kenny
    Feb 26 at 19:50








  • 2





    @AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

    – marmot
    Feb 26 at 19:56











  • @AidenKenny Thanks for spotting this! It was indeed very misleading.

    – marmot
    Feb 26 at 20:16
















6












6








6







Something like this? (Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified, i.e. the coordinates in clip need to be prepended with axis cs:,
clip plot[variable=x,domain=0:1.5] (axis cs:x,x,{f(x,x)})
-- (axis cs:1.5,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(0,0)});
. )



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}[declare function={f(x,y)=12*exp(-(4*x+3*y));}]

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

begin{scope}
clip plot[variable=x,domain=0:1.5] (x,x,{f(x,x)})
-- (1.5,0,{f(1.5,1.5)}) -- (0,0,{f(1.5,1.5)}) -- (0,0,{f(0,0)});
addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
] {f(x,y)};
end{scope}

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);


%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75]
(x,x,{f(x,x)});

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer















Something like this? (Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified, i.e. the coordinates in clip need to be prepended with axis cs:,
clip plot[variable=x,domain=0:1.5] (axis cs:x,x,{f(x,x)})
-- (axis cs:1.5,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(1.5,1.5)}) -- (axis cs:0,0,{f(0,0)});
. )



PassOptionsToPackage{usenames,dvipsnames,table,x11names}{xcolor}
documentclass[a4paper, 12pt]{article}
usepackage{pgfplots}
pgfplotsset{compat=1.16}
usepgfplotslibrary{colormaps,fillbetween}

begin{document}

begin{tikzpicture}[declare function={f(x,y)=12*exp(-(4*x+3*y));}]

begin{axis}[
zmax=15,
zmin=0,
view = {45}{45},
grid=minor,
colormap={mycol}{color=(Tan), color=(Tan)},
xlabel = $s$,
ylabel = $h$,
zlabel = {$f(s,h)$},
ticks = none,
]

begin{scope}
clip plot[variable=x,domain=0:1.5] (x,x,{f(x,x)})
-- (1.5,0,{f(1.5,1.5)}) -- (0,0,{f(1.5,1.5)}) -- (0,0,{f(0,0)});
addplot3[
surf,
samples=30,
domain=0:1.5,
%y domain = 0:x, %does not work
opacity=0.5,
] {f(x,y)};
end{scope}

%highlighting dark part of bottom
filldraw[Tan, fill = Tan, opacity = 0, fill opacity = 0.5] (0,0,0) -- (1.5,1.5,0) -- (1.5,0,0) -- (0,0,0);


%line across bottom
draw[RawSienna, thick, opacity = 0.75] (0,0,0) -- (1.5,1.5,0);

line going across graph
addplot3 [domain=0:1.5, RawSienna, thick, samples=30, samples y=0, opacity = 0.75]
(x,x,{f(x,x)});

end{axis}
end{tikzpicture}

end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Feb 26 at 19:58

























answered Feb 26 at 15:02









marmotmarmot

106k4127242




106k4127242








  • 1





    +1: This will go in to by code bucket :)

    – Dr. Manuel Kuehner
    Feb 26 at 15:59






  • 1





    Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

    – Aiden Kenny
    Feb 26 at 19:50








  • 2





    @AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

    – marmot
    Feb 26 at 19:56











  • @AidenKenny Thanks for spotting this! It was indeed very misleading.

    – marmot
    Feb 26 at 20:16
















  • 1





    +1: This will go in to by code bucket :)

    – Dr. Manuel Kuehner
    Feb 26 at 15:59






  • 1





    Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

    – Aiden Kenny
    Feb 26 at 19:50








  • 2





    @AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

    – marmot
    Feb 26 at 19:56











  • @AidenKenny Thanks for spotting this! It was indeed very misleading.

    – marmot
    Feb 26 at 20:16










1




1





+1: This will go in to by code bucket :)

– Dr. Manuel Kuehner
Feb 26 at 15:59





+1: This will go in to by code bucket :)

– Dr. Manuel Kuehner
Feb 26 at 15:59




1




1





Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

– Aiden Kenny
Feb 26 at 19:50







Yes, this is exactly what I had in mind! For what reason did you say the code will have to be modified in pgfplotsset{compat=1.16}? Because it works fine for me!

– Aiden Kenny
Feb 26 at 19:50






2




2





@AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

– marmot
Feb 26 at 19:56





@AidenKenny That's a typo. I wanted to write: "Note that if you want a very old version instead of pgfplotsset{compat=1.16} this will have to be slightly modified.", the reason being that with very old versions you need to prepend the coordinates in clip with axis cs:.

– marmot
Feb 26 at 19:56













@AidenKenny Thanks for spotting this! It was indeed very misleading.

– marmot
Feb 26 at 20:16







@AidenKenny Thanks for spotting this! It was indeed very misleading.

– marmot
Feb 26 at 20:16




















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f476729%2frestricting-domain-of-3d-plot%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

ComboBox Display Member on multiple fields

Is it possible to collect Nectar points via Trainline?