Projecting contour on the floor in a 3d plot
The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).
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
add a comment |
The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).
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
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
add a comment |
The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).
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
The contour is drawn on the top surface, I'm trying to plot the contour on the floor (A-B).
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
pgfplots 3d contour
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
add a comment |
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
add a comment |
1 Answer
1
active
oldest
votes
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}
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 setzmin
to-55
and added the contour a tiny bit above (such that it does not clipped away).
– marmot
Mar 5 at 19:25
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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}
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 setzmin
to-55
and added the contour a tiny bit above (such that it does not clipped away).
– marmot
Mar 5 at 19:25
add a comment |
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}
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 setzmin
to-55
and added the contour a tiny bit above (such that it does not clipped away).
– marmot
Mar 5 at 19:25
add a comment |
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}
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}
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 setzmin
to-55
and added the contour a tiny bit above (such that it does not clipped away).
– marmot
Mar 5 at 19:25
add a comment |
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 setzmin
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
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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