Drawing a ribbon graph Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)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

How did Fremen produce and carry enough thumpers to use Sandworms as de facto Ubers?

How can I prevent/balance waiting and turtling as a response to cooldown mechanics

Putting class ranking in CV, but against dept guidelines

Printing attributes of selection in ArcPy?

Cut your dress down to your length/size

RSA find public exponent

Did any compiler fully use 80-bit floating point?

How were pictures turned from film to a big picture in a picture frame before digital scanning?

What order were files/directories output in dir?

Tannaka duality for semisimple groups

Drawing a ribbon graph

How does light 'choose' between wave and particle behaviour?

retrieve food groups from food item list

What is the difference between a "ranged attack" and a "ranged weapon attack"?

What does 丫 mean? 丫是什么意思?

The Nth Gryphon Number

How many morphisms from 1 to 1+1 can there be?

One-one communication

Tips to organize LaTeX presentations for a semester

Asymptotics question

Special flights

What would you call this weird metallic apparatus that allows you to lift people?

What does this say in Elvish?

Positioning dot before text in math mode



Drawing a ribbon graph



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern)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










2















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
    3 hours ago






  • 1





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

    – Gabriel
    3 hours ago












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

    – JouleV
    3 hours ago







  • 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
    3 hours ago















2















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
    3 hours ago






  • 1





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

    – Gabriel
    3 hours ago












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

    – JouleV
    3 hours ago







  • 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
    3 hours ago













2












2








2


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 3 hours ago









GabrielGabriel

39119




39119












  • Just draw the background as usual.

    – JouleV
    3 hours ago






  • 1





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

    – Gabriel
    3 hours ago












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

    – JouleV
    3 hours ago







  • 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
    3 hours ago

















  • Just draw the background as usual.

    – JouleV
    3 hours ago






  • 1





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

    – Gabriel
    3 hours ago












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

    – JouleV
    3 hours ago







  • 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
    3 hours ago
















Just draw the background as usual.

– JouleV
3 hours ago





Just draw the background as usual.

– JouleV
3 hours ago




1




1





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

– Gabriel
3 hours ago






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

– Gabriel
3 hours ago














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

– JouleV
3 hours ago






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

– JouleV
3 hours ago





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
3 hours ago





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

– Gabriel
3 hours ago










1 Answer
1






active

oldest

votes


















3














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









    3














    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



























      3














      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

























        3












        3








        3







        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 3 hours ago









        marmotmarmot

        120k6154290




        120k6154290



























            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

            Best approach to update all entries in a list that is paginated?Best way to add items to a paginated listChoose Your Country: Best Usability approachUpdate list when a user is viewing the list without annoying themWhen would the best day to update your webpage be?What should happen when I add a Row to a paginated, sorted listShould I adopt infinite scrolling or classical pagination?How to show user that page objects automatically updateWhat is the best location to locate the comments section in a list pageBest way to combine filtering and selecting items in a listWhen one of two inputs must be updated to satisfy a consistency criteria, which should you update (if at all)?

            Тонконіг бульбистий Зміст Опис | Поширення | Екологія | Господарське значення | Примітки | Див. також | Література | Джерела | Посилання | Навігаційне меню1114601320038-241116202404kew-435458Poa bulbosaЭлектронный каталог сосудистых растений Азиатской России [Електронний каталог судинних рослин Азіатської Росії]Малышев Л. Л. Дикие родичи культурных растений. Poa bulbosa L. - Мятлик луковичный. [Малишев Л. Л. Дикі родичи культурних рослин. Poa bulbosa L. - Тонконіг бульбистий.]Мятлик (POA) Сем. Злаки (Мятликовые) [Тонконіг (POA) Род. Злаки (Тонконогові)]Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Description from Flora of China) [Poa bulbosa Linnaeus, Sp. Pl. 1: 70. 1753. 鳞茎早熟禾 lin jing zao shu he (Опис від Флора Китаю)]Poa bulbosa L. – lipnice cibulkatá / lipnica cibulkatáPoa bulbosa в базі даних Poa bulbosa на сайті Poa bulbosa в базі даних «Global Biodiversity Information Facility» (GBIF)Poa bulbosa в базі даних «Euro + Med PlantBase» — інформаційному ресурсі для Євро-середземноморського розмаїття рослинPoa bulbosa L. на сайті «Плантариум»

            Вунгтау (аеропорт) Загальні відомості | Див. також | Посилання | Навігаційне меню10°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.0833310°22′00″ пн. ш. 107°05′00″ сх. д. / 10.36667° пн. ш. 107.08333° сх. д. / 10.36667; 107.083337731608Vinh AirportVinh airport facelift improves serviceвиправивши або дописавши їївиправивши або дописавши їїр