Plotting a parameterized curve on a certain coordinate system












1















Trying to plot the 3D curve



(t,t^2,2*t^3), tin [0,1],


with the code:



begin{tikzpicture}
begin{axis}
%view={105}{5},
[samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);

end{axis}

end{tikzpicture}


I got the following output:



enter image description here



But I want to plot that curve in the regular coordinate system:



   begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};

end{tikzpicture}


that is:



enter image description here



Which would be the code ?



Later Edit: By using view{95}{5}, the axes seem to be like in the second output, but not perfect:



begin{tikzpicture}
begin{axis}
[view={95}{5}, samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);
end{axis}
end{tikzpicture}


The output being:
enter image description here










share|improve this question




















  • 1





    Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

    – Jānis Lazovskis
    Dec 4 '17 at 20:27
















1















Trying to plot the 3D curve



(t,t^2,2*t^3), tin [0,1],


with the code:



begin{tikzpicture}
begin{axis}
%view={105}{5},
[samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);

end{axis}

end{tikzpicture}


I got the following output:



enter image description here



But I want to plot that curve in the regular coordinate system:



   begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};

end{tikzpicture}


that is:



enter image description here



Which would be the code ?



Later Edit: By using view{95}{5}, the axes seem to be like in the second output, but not perfect:



begin{tikzpicture}
begin{axis}
[view={95}{5}, samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);
end{axis}
end{tikzpicture}


The output being:
enter image description here










share|improve this question




















  • 1





    Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

    – Jānis Lazovskis
    Dec 4 '17 at 20:27














1












1








1








Trying to plot the 3D curve



(t,t^2,2*t^3), tin [0,1],


with the code:



begin{tikzpicture}
begin{axis}
%view={105}{5},
[samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);

end{axis}

end{tikzpicture}


I got the following output:



enter image description here



But I want to plot that curve in the regular coordinate system:



   begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};

end{tikzpicture}


that is:



enter image description here



Which would be the code ?



Later Edit: By using view{95}{5}, the axes seem to be like in the second output, but not perfect:



begin{tikzpicture}
begin{axis}
[view={95}{5}, samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);
end{axis}
end{tikzpicture}


The output being:
enter image description here










share|improve this question
















Trying to plot the 3D curve



(t,t^2,2*t^3), tin [0,1],


with the code:



begin{tikzpicture}
begin{axis}
%view={105}{5},
[samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);

end{axis}

end{tikzpicture}


I got the following output:



enter image description here



But I want to plot that curve in the regular coordinate system:



   begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};

end{tikzpicture}


that is:



enter image description here



Which would be the code ?



Later Edit: By using view{95}{5}, the axes seem to be like in the second output, but not perfect:



begin{tikzpicture}
begin{axis}
[view={95}{5}, samples y=0, axis lines=center,axis on top,xlabel=$x$, ylabel=$y$, zlabel=$z$]

addplot3+[no markers,variable=t,domain=0:1,blue,samples=80,samples y=0] (t,t^2,2*t^3);
end{axis}
end{tikzpicture}


The output being:
enter image description here







tikz-pgf pgfplots






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jan 15 at 19:28









Stefan Pinnow

19.7k83275




19.7k83275










asked Dec 4 '17 at 19:06









CrisCris

473211




473211








  • 1





    Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

    – Jānis Lazovskis
    Dec 4 '17 at 20:27














  • 1





    Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

    – Jānis Lazovskis
    Dec 4 '17 at 20:27








1




1





Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

– Jānis Lazovskis
Dec 4 '17 at 20:27





Adjusting view= won't be enough to solve your problem, you need something more - take a look at this question, which seems to deal with a similar issue.

– Jānis Lazovskis
Dec 4 '17 at 20:27










1 Answer
1






active

oldest

votes


















1














This is not an answer but an attempt to understand the question better. In your desired coordinate system, you perform a cyclic permutation of the x-, y- and z-directions, right? If that's the case, why does a change of the view and relabeling of the axes by hand not work? A brute force solution, which is certainly not a final solution, is



documentclass[border2mm]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};
defn{80}
foreach i in {1,...,n} {
pgfmathsetmacro{u}{(i-1)/n}
pgfmathsetmacro{v}{((i-1)/n)^2}
pgfmathsetmacro{w}{2*((i-1)/n)^3}
pgfmathsetmacro{x}{(i/n)}
pgfmathsetmacro{y}{(i/n)^2}
pgfmathsetmacro{z}{2*(i/n)^3}
draw[-,blue,thick,smooth] (v,w,u) -- (y,z,x);
}
end{tikzpicture}
end{document}


enter image description here



I just posted this in order to find out whether this is the plot you want to get, and I understand that this is a hilariously complicated way of producing the plot.






share|improve this answer
























  • thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

    – Cris
    Dec 5 '17 at 6:36











  • @Cris That's what I thought. I was just confused by the comment that view would not work. A

    – marmot
    Dec 5 '17 at 16:53











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%2f404555%2fplotting-a-parameterized-curve-on-a-certain-coordinate-system%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














This is not an answer but an attempt to understand the question better. In your desired coordinate system, you perform a cyclic permutation of the x-, y- and z-directions, right? If that's the case, why does a change of the view and relabeling of the axes by hand not work? A brute force solution, which is certainly not a final solution, is



documentclass[border2mm]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};
defn{80}
foreach i in {1,...,n} {
pgfmathsetmacro{u}{(i-1)/n}
pgfmathsetmacro{v}{((i-1)/n)^2}
pgfmathsetmacro{w}{2*((i-1)/n)^3}
pgfmathsetmacro{x}{(i/n)}
pgfmathsetmacro{y}{(i/n)^2}
pgfmathsetmacro{z}{2*(i/n)^3}
draw[-,blue,thick,smooth] (v,w,u) -- (y,z,x);
}
end{tikzpicture}
end{document}


enter image description here



I just posted this in order to find out whether this is the plot you want to get, and I understand that this is a hilariously complicated way of producing the plot.






share|improve this answer
























  • thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

    – Cris
    Dec 5 '17 at 6:36











  • @Cris That's what I thought. I was just confused by the comment that view would not work. A

    – marmot
    Dec 5 '17 at 16:53
















1














This is not an answer but an attempt to understand the question better. In your desired coordinate system, you perform a cyclic permutation of the x-, y- and z-directions, right? If that's the case, why does a change of the view and relabeling of the axes by hand not work? A brute force solution, which is certainly not a final solution, is



documentclass[border2mm]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};
defn{80}
foreach i in {1,...,n} {
pgfmathsetmacro{u}{(i-1)/n}
pgfmathsetmacro{v}{((i-1)/n)^2}
pgfmathsetmacro{w}{2*((i-1)/n)^3}
pgfmathsetmacro{x}{(i/n)}
pgfmathsetmacro{y}{(i/n)^2}
pgfmathsetmacro{z}{2*(i/n)^3}
draw[-,blue,thick,smooth] (v,w,u) -- (y,z,x);
}
end{tikzpicture}
end{document}


enter image description here



I just posted this in order to find out whether this is the plot you want to get, and I understand that this is a hilariously complicated way of producing the plot.






share|improve this answer
























  • thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

    – Cris
    Dec 5 '17 at 6:36











  • @Cris That's what I thought. I was just confused by the comment that view would not work. A

    – marmot
    Dec 5 '17 at 16:53














1












1








1







This is not an answer but an attempt to understand the question better. In your desired coordinate system, you perform a cyclic permutation of the x-, y- and z-directions, right? If that's the case, why does a change of the view and relabeling of the axes by hand not work? A brute force solution, which is certainly not a final solution, is



documentclass[border2mm]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};
defn{80}
foreach i in {1,...,n} {
pgfmathsetmacro{u}{(i-1)/n}
pgfmathsetmacro{v}{((i-1)/n)^2}
pgfmathsetmacro{w}{2*((i-1)/n)^3}
pgfmathsetmacro{x}{(i/n)}
pgfmathsetmacro{y}{(i/n)^2}
pgfmathsetmacro{z}{2*(i/n)^3}
draw[-,blue,thick,smooth] (v,w,u) -- (y,z,x);
}
end{tikzpicture}
end{document}


enter image description here



I just posted this in order to find out whether this is the plot you want to get, and I understand that this is a hilariously complicated way of producing the plot.






share|improve this answer













This is not an answer but an attempt to understand the question better. In your desired coordinate system, you perform a cyclic permutation of the x-, y- and z-directions, right? If that's the case, why does a change of the view and relabeling of the axes by hand not work? A brute force solution, which is certainly not a final solution, is



documentclass[border2mm]{standalone}
usepackage{tikz}
begin{document}
begin{tikzpicture}

draw[thick,->] (0,0,0)coordinate (O) -- (3,0,0) coordinate (X)
node[anchor=north east]{$y$};
draw[thick,->] (0,0,0) -- (0,3,0) coordinate (Y) node[anchor=north
west]{$z$};
draw[thick,->] (0,0,0) -- (0,0,3) coordinate (Z) node[anchor=south]{$x$};
defn{80}
foreach i in {1,...,n} {
pgfmathsetmacro{u}{(i-1)/n}
pgfmathsetmacro{v}{((i-1)/n)^2}
pgfmathsetmacro{w}{2*((i-1)/n)^3}
pgfmathsetmacro{x}{(i/n)}
pgfmathsetmacro{y}{(i/n)^2}
pgfmathsetmacro{z}{2*(i/n)^3}
draw[-,blue,thick,smooth] (v,w,u) -- (y,z,x);
}
end{tikzpicture}
end{document}


enter image description here



I just posted this in order to find out whether this is the plot you want to get, and I understand that this is a hilariously complicated way of producing the plot.







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 5 '17 at 1:32









marmotmarmot

93.8k4109208




93.8k4109208













  • thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

    – Cris
    Dec 5 '17 at 6:36











  • @Cris That's what I thought. I was just confused by the comment that view would not work. A

    – marmot
    Dec 5 '17 at 16:53



















  • thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

    – Cris
    Dec 5 '17 at 6:36











  • @Cris That's what I thought. I was just confused by the comment that view would not work. A

    – marmot
    Dec 5 '17 at 16:53

















thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

– Cris
Dec 5 '17 at 6:36





thank you very much ! Indeed, this way is too complicated. By using view{95}{5}, the axes seem to be like in my second output.

– Cris
Dec 5 '17 at 6:36













@Cris That's what I thought. I was just confused by the comment that view would not work. A

– marmot
Dec 5 '17 at 16:53





@Cris That's what I thought. I was just confused by the comment that view would not work. A

– marmot
Dec 5 '17 at 16:53


















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%2f404555%2fplotting-a-parameterized-curve-on-a-certain-coordinate-system%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?