Is it possible to draw a 3d plot as line art with tikz?












4















Is it possible to draw a 3d plot as line art with tikz? For example, Is it possible to draw z=x*exp(-x^2-y^2) with smooth line art style? Something like the following figure for z=x^3-3x*y^2.
enter image description here










share|improve this question




















  • 2





    This might help to get this started: Simulating hand-drawn lines.

    – Peter Grill
    Jan 11 at 7:08











  • @Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

    – hpekristiansen
    Jan 11 at 9:53











  • @hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

    – Peter Grill
    Jan 12 at 0:32











  • Something like this: eclecticcats.wordpress.com/2014/03/25/…

    – C.F.G
    Jan 13 at 4:49
















4















Is it possible to draw a 3d plot as line art with tikz? For example, Is it possible to draw z=x*exp(-x^2-y^2) with smooth line art style? Something like the following figure for z=x^3-3x*y^2.
enter image description here










share|improve this question




















  • 2





    This might help to get this started: Simulating hand-drawn lines.

    – Peter Grill
    Jan 11 at 7:08











  • @Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

    – hpekristiansen
    Jan 11 at 9:53











  • @hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

    – Peter Grill
    Jan 12 at 0:32











  • Something like this: eclecticcats.wordpress.com/2014/03/25/…

    – C.F.G
    Jan 13 at 4:49














4












4








4


1






Is it possible to draw a 3d plot as line art with tikz? For example, Is it possible to draw z=x*exp(-x^2-y^2) with smooth line art style? Something like the following figure for z=x^3-3x*y^2.
enter image description here










share|improve this question
















Is it possible to draw a 3d plot as line art with tikz? For example, Is it possible to draw z=x*exp(-x^2-y^2) with smooth line art style? Something like the following figure for z=x^3-3x*y^2.
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 11 at 8:17







C.F.G

















asked Jan 11 at 6:54









C.F.GC.F.G

560312




560312








  • 2





    This might help to get this started: Simulating hand-drawn lines.

    – Peter Grill
    Jan 11 at 7:08











  • @Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

    – hpekristiansen
    Jan 11 at 9:53











  • @hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

    – Peter Grill
    Jan 12 at 0:32











  • Something like this: eclecticcats.wordpress.com/2014/03/25/…

    – C.F.G
    Jan 13 at 4:49














  • 2





    This might help to get this started: Simulating hand-drawn lines.

    – Peter Grill
    Jan 11 at 7:08











  • @Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

    – hpekristiansen
    Jan 11 at 9:53











  • @hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

    – Peter Grill
    Jan 12 at 0:32











  • Something like this: eclecticcats.wordpress.com/2014/03/25/…

    – C.F.G
    Jan 13 at 4:49








2




2





This might help to get this started: Simulating hand-drawn lines.

– Peter Grill
Jan 11 at 7:08





This might help to get this started: Simulating hand-drawn lines.

– Peter Grill
Jan 11 at 7:08













@Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

– hpekristiansen
Jan 11 at 9:53





@Peter Grill: I do not think that the OP is looking for a line style other than normal smooth curves. I believe the question is about drawing just significant lines of a 3d plot as in the example.

– hpekristiansen
Jan 11 at 9:53













@hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

– Peter Grill
Jan 12 at 0:32





@hpekristiansen: If that is the case then the reference to "line art" style should be removed from the question.

– Peter Grill
Jan 12 at 0:32













Something like this: eclecticcats.wordpress.com/2014/03/25/…

– C.F.G
Jan 13 at 4:49





Something like this: eclecticcats.wordpress.com/2014/03/25/…

– C.F.G
Jan 13 at 4:49










1 Answer
1






active

oldest

votes


















2














Asymptote is probably the better tool for serious 3d functions:



enter image description here



import graph3;
size(200,0);
currentprojection=perspective(10,8,9);
real f(pair z) {return z.x*exp(-(z.x**2)-(z.y**2));}
surface s=surface(f,(-1.4,-1.4),(1.4,1.4),nx=20,Spline);
draw(s,lightgray,meshpen=black+thick(),nolight,render(merge=true));


If you have a full TeX installation, then it will be already installed. texdoc asy tells you how to run it, and then if you do asy to bring up the interactive prompt, typing help will open the manual. It's very powerful but there is a lot to learn.



As the relevant help page will tell you, asy can be integrated into your LaTeX source file.






share|improve this answer























    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%2f469653%2fis-it-possible-to-draw-a-3d-plot-as-line-art-with-tikz%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









    2














    Asymptote is probably the better tool for serious 3d functions:



    enter image description here



    import graph3;
    size(200,0);
    currentprojection=perspective(10,8,9);
    real f(pair z) {return z.x*exp(-(z.x**2)-(z.y**2));}
    surface s=surface(f,(-1.4,-1.4),(1.4,1.4),nx=20,Spline);
    draw(s,lightgray,meshpen=black+thick(),nolight,render(merge=true));


    If you have a full TeX installation, then it will be already installed. texdoc asy tells you how to run it, and then if you do asy to bring up the interactive prompt, typing help will open the manual. It's very powerful but there is a lot to learn.



    As the relevant help page will tell you, asy can be integrated into your LaTeX source file.






    share|improve this answer




























      2














      Asymptote is probably the better tool for serious 3d functions:



      enter image description here



      import graph3;
      size(200,0);
      currentprojection=perspective(10,8,9);
      real f(pair z) {return z.x*exp(-(z.x**2)-(z.y**2));}
      surface s=surface(f,(-1.4,-1.4),(1.4,1.4),nx=20,Spline);
      draw(s,lightgray,meshpen=black+thick(),nolight,render(merge=true));


      If you have a full TeX installation, then it will be already installed. texdoc asy tells you how to run it, and then if you do asy to bring up the interactive prompt, typing help will open the manual. It's very powerful but there is a lot to learn.



      As the relevant help page will tell you, asy can be integrated into your LaTeX source file.






      share|improve this answer


























        2












        2








        2







        Asymptote is probably the better tool for serious 3d functions:



        enter image description here



        import graph3;
        size(200,0);
        currentprojection=perspective(10,8,9);
        real f(pair z) {return z.x*exp(-(z.x**2)-(z.y**2));}
        surface s=surface(f,(-1.4,-1.4),(1.4,1.4),nx=20,Spline);
        draw(s,lightgray,meshpen=black+thick(),nolight,render(merge=true));


        If you have a full TeX installation, then it will be already installed. texdoc asy tells you how to run it, and then if you do asy to bring up the interactive prompt, typing help will open the manual. It's very powerful but there is a lot to learn.



        As the relevant help page will tell you, asy can be integrated into your LaTeX source file.






        share|improve this answer













        Asymptote is probably the better tool for serious 3d functions:



        enter image description here



        import graph3;
        size(200,0);
        currentprojection=perspective(10,8,9);
        real f(pair z) {return z.x*exp(-(z.x**2)-(z.y**2));}
        surface s=surface(f,(-1.4,-1.4),(1.4,1.4),nx=20,Spline);
        draw(s,lightgray,meshpen=black+thick(),nolight,render(merge=true));


        If you have a full TeX installation, then it will be already installed. texdoc asy tells you how to run it, and then if you do asy to bring up the interactive prompt, typing help will open the manual. It's very powerful but there is a lot to learn.



        As the relevant help page will tell you, asy can be integrated into your LaTeX source file.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jan 11 at 12:18









        ThrustonThruston

        26k24290




        26k24290






























            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%2f469653%2fis-it-possible-to-draw-a-3d-plot-as-line-art-with-tikz%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

            How to change which sound is reproduced for terminal bell?

            Can I use Tabulator js library in my java Spring + Thymeleaf project?

            Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents