Drawing a ribbon graphRotate a node but not its content: the case of the ellipse decorationTikZ scaling graphic and adjust node position and keep font sizeTikZ: Drawing an arc from an intersection to an intersectiondoubt in drawing graphLine up nested tikz enviroments or how to get rid of themDrawing a graphPGF Decoration: how to remember a point between decoration states?Tikz: drawing dual graphCircular clockwise graph drawingdrawing an economic graph

Why isn't the definition of absolute value applied when squaring a radical containing a variable?

What happened to Captain America in Endgame?

Was there a Viking Exchange as well as a Columbian one?

Is there any limitation with Arduino Nano serial communication distance?

Apply MapThread to all but one variable

Phrase for the opposite of "foolproof"

Reducing vertical space in stackrel

Uniformly continuous derivative implies existence of limit

How come there are so many candidates for the 2020 Democratic party presidential nomination?

A ​Note ​on ​N!

Any examples of headwear for races with animal ears?

Shrinkwrap tetris shapes without scaling or diagonal shapes

What is the relationship between spectral sequences and obstruction theory?

Term for maladaptive animal behavior that will lead to their demise?

Contradiction proof for inequality of P and NP?

How exactly does Hawking radiation decrease the mass of black holes?

Please, smoke with good manners

Is there a way to get a compiler for the original B programming language?

Why do Computer Science majors learn Calculus?

Why does processed meat contain preservatives, while canned fish needs not?

Realistic Necromancy?

Controversial area of mathematics

What do the phrase "Reeyan's seacrest" and the word "fraggle" mean in a sketch?

Is the 5 MB static resource size limit 5,242,880 bytes or 5,000,000 bytes?



Drawing a ribbon graph


Rotate a node but not its content: the case of the ellipse decorationTikZ scaling graphic and adjust node position and keep font sizeTikZ: Drawing an arc from an intersection to an intersectiondoubt in drawing graphLine up nested tikz enviroments or how to get rid of themDrawing a graphPGF Decoration: how to remember a point between decoration states?Tikz: drawing dual graphCircular clockwise graph drawingdrawing an economic graph













3















Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left.





I already drew the graph using Bézier curves but I don't think the best way to approach the ribbon graph would be using Bézier curves. How could I do it?



Below we have my drawing of the graph:



begintikzpicture
useasboundingbox (-2,-2) rectangle (2,2.5);
beginscope[very thick,decoration=
markings,
mark=at position 0.3 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
endscope
beginscope[very thick,decoration=
markings,
mark=at position 0.5 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
.. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
endscope
fill[fill=black] (0,0) circle (3pt);
endtikzpicture











share|improve this question






















  • Just draw the background as usual.

    – JouleV
    Apr 20 at 15:21






  • 1





    @JouleV what do you mean? Using Bézier curves?

    – Gabriel
    Apr 20 at 15:24












  • Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

    – JouleV
    Apr 20 at 15:26







  • 1





    That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

    – Gabriel
    Apr 20 at 15:30















3















Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left.





I already drew the graph using Bézier curves but I don't think the best way to approach the ribbon graph would be using Bézier curves. How could I do it?



Below we have my drawing of the graph:



begintikzpicture
useasboundingbox (-2,-2) rectangle (2,2.5);
beginscope[very thick,decoration=
markings,
mark=at position 0.3 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
endscope
beginscope[very thick,decoration=
markings,
mark=at position 0.5 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
.. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
endscope
fill[fill=black] (0,0) circle (3pt);
endtikzpicture











share|improve this question






















  • Just draw the background as usual.

    – JouleV
    Apr 20 at 15:21






  • 1





    @JouleV what do you mean? Using Bézier curves?

    – Gabriel
    Apr 20 at 15:24












  • Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

    – JouleV
    Apr 20 at 15:26







  • 1





    That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

    – Gabriel
    Apr 20 at 15:30













3












3








3


1






Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left.





I already drew the graph using Bézier curves but I don't think the best way to approach the ribbon graph would be using Bézier curves. How could I do it?



Below we have my drawing of the graph:



begintikzpicture
useasboundingbox (-2,-2) rectangle (2,2.5);
beginscope[very thick,decoration=
markings,
mark=at position 0.3 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
endscope
beginscope[very thick,decoration=
markings,
mark=at position 0.5 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
.. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
endscope
fill[fill=black] (0,0) circle (3pt);
endtikzpicture











share|improve this question














Given a graph like the one on the right side of the picture below, I want to draw a ribbon graph (that is, a "thickened" version of the graph) like the one on the left.





I already drew the graph using Bézier curves but I don't think the best way to approach the ribbon graph would be using Bézier curves. How could I do it?



Below we have my drawing of the graph:



begintikzpicture
useasboundingbox (-2,-2) rectangle (2,2.5);
beginscope[very thick,decoration=
markings,
mark=at position 0.3 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
endscope
beginscope[very thick,decoration=
markings,
mark=at position 0.5 with arrow>
]
draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
.. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
endscope
fill[fill=black] (0,0) circle (3pt);
endtikzpicture








tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Apr 20 at 15:13









GabrielGabriel

40629




40629












  • Just draw the background as usual.

    – JouleV
    Apr 20 at 15:21






  • 1





    @JouleV what do you mean? Using Bézier curves?

    – Gabriel
    Apr 20 at 15:24












  • Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

    – JouleV
    Apr 20 at 15:26







  • 1





    That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

    – Gabriel
    Apr 20 at 15:30

















  • Just draw the background as usual.

    – JouleV
    Apr 20 at 15:21






  • 1





    @JouleV what do you mean? Using Bézier curves?

    – Gabriel
    Apr 20 at 15:24












  • Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

    – JouleV
    Apr 20 at 15:26







  • 1





    That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

    – Gabriel
    Apr 20 at 15:30
















Just draw the background as usual.

– JouleV
Apr 20 at 15:21





Just draw the background as usual.

– JouleV
Apr 20 at 15:21




1




1





@JouleV what do you mean? Using Bézier curves?

– Gabriel
Apr 20 at 15:24






@JouleV what do you mean? Using Bézier curves?

– Gabriel
Apr 20 at 15:24














Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

– JouleV
Apr 20 at 15:26






Yeah! Just draw some other Bezier curves, or whatever curves you want, and use some fill commands for color filling.

– JouleV
Apr 20 at 15:26





1




1





That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

– Gabriel
Apr 20 at 15:30





That's surely possible. However that seems insanely time consuming to me. I wonder if there is a better way to approach this.

– Gabriel
Apr 20 at 15:30










1 Answer
1






active

oldest

votes


















5














I do not know if it is time consuming to draw this. For me it would be probably more time-consuming to try to understand the abstract question behind this. If there is a clear, general question, please let me now, otherwise you may want to look at



documentclass[tikz,border=3.14mm]standalone
usetikzlibrarydecorations.markings
begindocument
begintikzpicture[insert arrow/.style=decoration=
markings,
mark=at position 0.3 with arrow>]
useasboundingbox (-2,-2) rectangle (2,2.5);
draw[fill=gray!20] (0,1) + (-40:2) arc(-40:220:2) to[out=-50,in=45] (200:1)
arc(135:405:1.3) to[out=135,in=-140] cycle;
beginscope[very thick,insert arrow=0.3]
draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
endscope
beginscope[very thick,insert arrow=0.5]
draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
.. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
endscope
fill[fill=black] (0,0) circle (3pt);
draw[fill=white] (0,1.2)+(-30:1.1) arc(-30:210:1.1) to[out=-60,in=-60,looseness=2] ++(0.1,0)
arc(210:-30:0.985) to[out=-120,in=-120,looseness=2] cycle;
endtikzpicture
enddocument


enter image description here






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%2f485757%2fdrawing-a-ribbon-graph%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









    5














    I do not know if it is time consuming to draw this. For me it would be probably more time-consuming to try to understand the abstract question behind this. If there is a clear, general question, please let me now, otherwise you may want to look at



    documentclass[tikz,border=3.14mm]standalone
    usetikzlibrarydecorations.markings
    begindocument
    begintikzpicture[insert arrow/.style=decoration=
    markings,
    mark=at position 0.3 with arrow>]
    useasboundingbox (-2,-2) rectangle (2,2.5);
    draw[fill=gray!20] (0,1) + (-40:2) arc(-40:220:2) to[out=-50,in=45] (200:1)
    arc(135:405:1.3) to[out=135,in=-140] cycle;
    beginscope[very thick,insert arrow=0.3]
    draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
    draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
    endscope
    beginscope[very thick,insert arrow=0.5]
    draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
    .. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
    endscope
    fill[fill=black] (0,0) circle (3pt);
    draw[fill=white] (0,1.2)+(-30:1.1) arc(-30:210:1.1) to[out=-60,in=-60,looseness=2] ++(0.1,0)
    arc(210:-30:0.985) to[out=-120,in=-120,looseness=2] cycle;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



























      5














      I do not know if it is time consuming to draw this. For me it would be probably more time-consuming to try to understand the abstract question behind this. If there is a clear, general question, please let me now, otherwise you may want to look at



      documentclass[tikz,border=3.14mm]standalone
      usetikzlibrarydecorations.markings
      begindocument
      begintikzpicture[insert arrow/.style=decoration=
      markings,
      mark=at position 0.3 with arrow>]
      useasboundingbox (-2,-2) rectangle (2,2.5);
      draw[fill=gray!20] (0,1) + (-40:2) arc(-40:220:2) to[out=-50,in=45] (200:1)
      arc(135:405:1.3) to[out=135,in=-140] cycle;
      beginscope[very thick,insert arrow=0.3]
      draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
      draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
      endscope
      beginscope[very thick,insert arrow=0.5]
      draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
      .. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
      endscope
      fill[fill=black] (0,0) circle (3pt);
      draw[fill=white] (0,1.2)+(-30:1.1) arc(-30:210:1.1) to[out=-60,in=-60,looseness=2] ++(0.1,0)
      arc(210:-30:0.985) to[out=-120,in=-120,looseness=2] cycle;
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer

























        5












        5








        5







        I do not know if it is time consuming to draw this. For me it would be probably more time-consuming to try to understand the abstract question behind this. If there is a clear, general question, please let me now, otherwise you may want to look at



        documentclass[tikz,border=3.14mm]standalone
        usetikzlibrarydecorations.markings
        begindocument
        begintikzpicture[insert arrow/.style=decoration=
        markings,
        mark=at position 0.3 with arrow>]
        useasboundingbox (-2,-2) rectangle (2,2.5);
        draw[fill=gray!20] (0,1) + (-40:2) arc(-40:220:2) to[out=-50,in=45] (200:1)
        arc(135:405:1.3) to[out=135,in=-140] cycle;
        beginscope[very thick,insert arrow=0.3]
        draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
        draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
        endscope
        beginscope[very thick,insert arrow=0.5]
        draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
        .. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
        endscope
        fill[fill=black] (0,0) circle (3pt);
        draw[fill=white] (0,1.2)+(-30:1.1) arc(-30:210:1.1) to[out=-60,in=-60,looseness=2] ++(0.1,0)
        arc(210:-30:0.985) to[out=-120,in=-120,looseness=2] cycle;
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer













        I do not know if it is time consuming to draw this. For me it would be probably more time-consuming to try to understand the abstract question behind this. If there is a clear, general question, please let me now, otherwise you may want to look at



        documentclass[tikz,border=3.14mm]standalone
        usetikzlibrarydecorations.markings
        begindocument
        begintikzpicture[insert arrow/.style=decoration=
        markings,
        mark=at position 0.3 with arrow>]
        useasboundingbox (-2,-2) rectangle (2,2.5);
        draw[fill=gray!20] (0,1) + (-40:2) arc(-40:220:2) to[out=-50,in=45] (200:1)
        arc(135:405:1.3) to[out=135,in=-140] cycle;
        beginscope[very thick,insert arrow=0.3]
        draw[ultra thick,postaction=decorate] (0,0) .. controls +(60:3) and +(120:3) .. (0,0);
        draw[ultra thick,postaction=decorate] (0,0) .. controls +(-60:3) and +(-120:3) .. (0,0);
        endscope
        beginscope[very thick,insert arrow=0.5]
        draw[ultra thick,postaction=decorate] (0,0) -- (-1,0) .. controls +(180:1) and +(180:2) .. (0,2.5)
        .. controls +(0:2) and +(0:1) .. (1,0) -- (0,0);
        endscope
        fill[fill=black] (0,0) circle (3pt);
        draw[fill=white] (0,1.2)+(-30:1.1) arc(-30:210:1.1) to[out=-60,in=-60,looseness=2] ++(0.1,0)
        arc(210:-30:0.985) to[out=-120,in=-120,looseness=2] cycle;
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Apr 20 at 15:47









        marmotmarmot

        122k6159297




        122k6159297



























            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%2f485757%2fdrawing-a-ribbon-graph%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

            Wikipedia:Vital articles Мазмуну Biography - Өмүр баян Philosophy and psychology - Философия жана психология Religion - Дин Social sciences - Коомдук илимдер Language and literature - Тил жана адабият Science - Илим Technology - Технология Arts and recreation - Искусство жана эс алуу History and geography - Тарых жана география Навигация менюсу

            Bruxelas-Capital Índice Historia | Composición | Situación lingüística | Clima | Cidades irmandadas | Notas | Véxase tamén | Menú de navegacióneO uso das linguas en Bruxelas e a situación do neerlandés"Rexión de Bruxelas Capital"o orixinalSitio da rexiónPáxina de Bruselas no sitio da Oficina de Promoción Turística de Valonia e BruxelasMapa Interactivo da Rexión de Bruxelas-CapitaleeWorldCat332144929079854441105155190212ID28008674080552-90000 0001 0666 3698n94104302ID540940339365017018237

            What should I write in an apology letter, since I have decided not to join a company after accepting an offer letterShould I keep looking after accepting a job offer?What should I do when I've been verbally told I would get an offer letter, but still haven't gotten one after 4 weeks?Do I accept an offer from a company that I am not likely to join?New job hasn't confirmed starting date and I want to give current employer as much notice as possibleHow should I address my manager in my resignation letter?HR delayed background verification, now jobless as resignedNo email communication after accepting a formal written offer. How should I phrase the call?What should I do if after receiving a verbal offer letter I am informed that my written job offer is put on hold due to some internal issues?Should I inform the current employer that I am about to resign within 1-2 weeks since I have signed the offer letter and waiting for visa?What company will do, if I send their offer letter to another company