tikz-3dplot and drawing curves and surfaces in 3D












0















I used the tiikz and tikz-3dplot packages a bit to draw figures in 3D and 3D. I however never yet plotted a mathematical function, and am not sure how to do it.



Could someone please give me a minumal example? The examples I find on the internet are all very complicated plots and drawings.



In particular I would like to plot the curve: z(x) = 1-x^2, on the interval xin(-1, 1). For the moment I would only need this in 2D, but ultimately it should be a curve in a 3D plot, where I also want to plot the surface z(x,y) = 1-x^2-y.



Thanks for help!










share|improve this question























  • Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

    – marmot
    1 hour ago











  • Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

    – Britzel
    18 mins ago
















0















I used the tiikz and tikz-3dplot packages a bit to draw figures in 3D and 3D. I however never yet plotted a mathematical function, and am not sure how to do it.



Could someone please give me a minumal example? The examples I find on the internet are all very complicated plots and drawings.



In particular I would like to plot the curve: z(x) = 1-x^2, on the interval xin(-1, 1). For the moment I would only need this in 2D, but ultimately it should be a curve in a 3D plot, where I also want to plot the surface z(x,y) = 1-x^2-y.



Thanks for help!










share|improve this question























  • Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

    – marmot
    1 hour ago











  • Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

    – Britzel
    18 mins ago














0












0








0








I used the tiikz and tikz-3dplot packages a bit to draw figures in 3D and 3D. I however never yet plotted a mathematical function, and am not sure how to do it.



Could someone please give me a minumal example? The examples I find on the internet are all very complicated plots and drawings.



In particular I would like to plot the curve: z(x) = 1-x^2, on the interval xin(-1, 1). For the moment I would only need this in 2D, but ultimately it should be a curve in a 3D plot, where I also want to plot the surface z(x,y) = 1-x^2-y.



Thanks for help!










share|improve this question














I used the tiikz and tikz-3dplot packages a bit to draw figures in 3D and 3D. I however never yet plotted a mathematical function, and am not sure how to do it.



Could someone please give me a minumal example? The examples I find on the internet are all very complicated plots and drawings.



In particular I would like to plot the curve: z(x) = 1-x^2, on the interval xin(-1, 1). For the moment I would only need this in 2D, but ultimately it should be a curve in a 3D plot, where I also want to plot the surface z(x,y) = 1-x^2-y.



Thanks for help!







tikz-pgf tikz-3dplot






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 1 hour ago









BritzelBritzel

17617




17617













  • Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

    – marmot
    1 hour ago











  • Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

    – Britzel
    18 mins ago



















  • Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

    – marmot
    1 hour ago











  • Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

    – Britzel
    18 mins ago

















Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

– marmot
1 hour ago





Please specify what you mean by "mathematical function". Do you want to do a parametric plot, i.e. plot a curve, or a surface (in which case I would think you are much better off with pgfplots).

– marmot
1 hour ago













Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

– Britzel
18 mins ago





Ultimately I am aiming at producing flow plots like the figures on pages 16 and 17 of this paper here: arxiv.org/pdf/gr-qc/0210031.pdf So I need to plot curves with arrows on them, and the curves can lie on surfaces, or within a 3 dimensional body.

– Britzel
18 mins ago










0






active

oldest

votes











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%2f481262%2ftikz-3dplot-and-drawing-curves-and-surfaces-in-3d%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















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%2f481262%2ftikz-3dplot-and-drawing-curves-and-surfaces-in-3d%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

Lallio

Unable to find Lightning Node

Futebolista