Projecting contour on the floor in a 3d plot












1















The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).enter image description here



documentclass{standalone}

usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}

begin{document}

begin{tikzpicture} begin{axis}
[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21]
{4*x + 5*y};

end{axis} end{tikzpicture}

end{document}









share|improve this question























  • addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

    – marmot
    Mar 5 at 19:08











  • I tried that, this changes the contour height, but it's not on the floor perfectly.

    – Taha Magdy
    Mar 5 at 19:10


















1















The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).enter image description here



documentclass{standalone}

usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}

begin{document}

begin{tikzpicture} begin{axis}
[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21]
{4*x + 5*y};

end{axis} end{tikzpicture}

end{document}









share|improve this question























  • addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

    – marmot
    Mar 5 at 19:08











  • I tried that, this changes the contour height, but it's not on the floor perfectly.

    – Taha Magdy
    Mar 5 at 19:10
















1












1








1








The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).enter image description here



documentclass{standalone}

usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}

begin{document}

begin{tikzpicture} begin{axis}
[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21]
{4*x + 5*y};

end{axis} end{tikzpicture}

end{document}









share|improve this question














The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).enter image description here



documentclass{standalone}

usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}

begin{document}

begin{tikzpicture} begin{axis}
[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21]
{4*x + 5*y};

end{axis} end{tikzpicture}

end{document}






pgfplots 3d contour






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Mar 5 at 19:02









Taha MagdyTaha Magdy

1018




1018













  • addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

    – marmot
    Mar 5 at 19:08











  • I tried that, this changes the contour height, but it's not on the floor perfectly.

    – Taha Magdy
    Mar 5 at 19:10





















  • addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

    – marmot
    Mar 5 at 19:08











  • I tried that, this changes the contour height, but it's not on the floor perfectly.

    – Taha Magdy
    Mar 5 at 19:10



















addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

– marmot
Mar 5 at 19:08





addplot3 [ contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-49.9}}] {4*x + 5*y}; ? (Or any value you want instead of -49.9.)

– marmot
Mar 5 at 19:08













I tried that, this changes the contour height, but it's not on the floor perfectly.

– Taha Magdy
Mar 5 at 19:10







I tried that, this changes the contour height, but it's not on the floor perfectly.

– Taha Magdy
Mar 5 at 19:10












1 Answer
1






active

oldest

votes


















1














documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}
begin{document}
begin{tikzpicture}
begin{axis}[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,zmax=55,zmin=-55
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-54.9}}]
{4*x + 5*y};

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer
























  • Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

    – Taha Magdy
    Mar 5 at 19:23






  • 1





    @TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

    – marmot
    Mar 5 at 19:25











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%2f477911%2fprojecting-contour-on-the-floor-in-a-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









1














documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}
begin{document}
begin{tikzpicture}
begin{axis}[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,zmax=55,zmin=-55
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-54.9}}]
{4*x + 5*y};

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer
























  • Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

    – Taha Magdy
    Mar 5 at 19:23






  • 1





    @TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

    – marmot
    Mar 5 at 19:25
















1














documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}
begin{document}
begin{tikzpicture}
begin{axis}[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,zmax=55,zmin=-55
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-54.9}}]
{4*x + 5*y};

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer
























  • Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

    – Taha Magdy
    Mar 5 at 19:23






  • 1





    @TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

    – marmot
    Mar 5 at 19:25














1












1








1







documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}
begin{document}
begin{tikzpicture}
begin{axis}[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,zmax=55,zmin=-55
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-54.9}}]
{4*x + 5*y};

end{axis}
end{tikzpicture}

end{document}


enter image description here






share|improve this answer













documentclass[tikz,border=3.14mm]{standalone}
usepackage{pgfplots}
pgfplotsset{width=10cm, compat=1.9}
begin{document}
begin{tikzpicture}
begin{axis}[
xlabel=$A$,
ylabel=$B$,
zlabel=$f_0$,
grid=major,zmax=55,zmin=-55
]


addplot3[
surf,
opacity=0.4,
] {4*x + 5*y};

addplot3 [
contour gnuplot, samples=21,z filter/.code={defpgfmathresult{-54.9}}]
{4*x + 5*y};

end{axis}
end{tikzpicture}

end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Mar 5 at 19:16









marmotmarmot

108k5132248




108k5132248













  • Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

    – Taha Magdy
    Mar 5 at 19:23






  • 1





    @TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

    – marmot
    Mar 5 at 19:25



















  • Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

    – Taha Magdy
    Mar 5 at 19:23






  • 1





    @TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

    – marmot
    Mar 5 at 19:25

















Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

– Taha Magdy
Mar 5 at 19:23





Could you explain please, how to make the contour on the floor like that? is it just trying numbers, is there a concrete way?

– Taha Magdy
Mar 5 at 19:23




1




1





@TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

– marmot
Mar 5 at 19:25





@TahaMagdy I just set zmin to -55 and added the contour a tiny bit above (such that it does not clipped away).

– marmot
Mar 5 at 19:25


















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%2f477911%2fprojecting-contour-on-the-floor-in-a-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?