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

Sally's older brother

A proverb that is used to imply that you have unexpectedly faced a big problem

If Windows 7 doesn't support WSL, then what is "Subsystem for UNIX-based Applications"?

Short story about a child who is a miniature, living Earth

Cut your dress down to your length/size

Why does electrolysis of aqueous concentrated sodium bromide produce bromine at the anode?

What does it mean that physics no longer uses mechanical models to describe phenomena?

Can two person see the same photon?

How can a team of shapeshifters communicate?

Central Vacuuming: Is it worth it, and how does it compare to normal vacuuming?

Is multiple magic items in one inherently imbalanced?

What is the difference between CTSS and ITS?

What to do with repeated rejections for phd position

RSA find public exponent

Connecting Mac Book Pro 2017 to 2 Projectors via USB C

How to ternary Plot3D a function

Is it dangerous to install hacking tools on my private linux machine?

The test team as an enemy of development? And how can this be avoided?

Is there public access to the Meteor Crater in Arizona?

retrieve food groups from food item list

How could we fake a moon landing now?

Universal covering space of the real projective line?

Why is std::move not [[nodiscard]] in C++20?

What does this say in Elvish?



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






  • 1





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

    – Gabriel
    4 hours ago












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

    – JouleV
    4 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
    4 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
    4 hours ago






  • 1





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

    – Gabriel
    4 hours ago












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

    – JouleV
    4 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
    4 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 4 hours ago









GabrielGabriel

39119




39119












  • Just draw the background as usual.

    – JouleV
    4 hours ago






  • 1





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

    – Gabriel
    4 hours ago












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

    – JouleV
    4 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
    4 hours ago

















  • Just draw the background as usual.

    – JouleV
    4 hours ago






  • 1





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

    – Gabriel
    4 hours ago












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

    – JouleV
    4 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
    4 hours ago
















Just draw the background as usual.

– JouleV
4 hours ago





Just draw the background as usual.

– JouleV
4 hours ago




1




1





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

– Gabriel
4 hours ago






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

– Gabriel
4 hours ago














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

– JouleV
4 hours ago






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

– JouleV
4 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
4 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
4 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 4 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

            Bett Inhaltsverzeichnis Geschichte | Bettformen | Bettgrößen | Andere Bezeichnungen | Bettenmangel | Betten in der bildenden Kunst | Schlafmedizinische Gesichtspunkte | Siehe auch | Literatur | Weblinks | Einzelnachweise | NavigationsmenüBett, Bettstatt, BettstelleCommons: BettBabybetten: Anwendung, Ausstattungsmerkmale und VergleichskriterienWasserbetten. Vorurteile im TestHapfnNursch10.1007/s11818-012-0584-74006250-8AKS4329276-8

            Luksemburg Sisukord Nimi | Asend | Loodus | Riigikord | Haldusjaotus | Rahvastik | Riigikaitse | Majandus | Taristu | Ajalugu | Eesti ja Luksemburgi suhted | Haridus | Kultuur | Vaata ka | Viited | Välislingid | Navigeerimismenüü50° N, 6° EÜlevaade Luksemburgi kaitsealadest.Luksemburgi rahvaarv. Statistikaamet.World Bank'i andmebaasÜlevaade Luksemburgi loodusest.Ülevaade Luksemburgi metsadest.Guy Colling. "Red List of the Vascular Plants of Luxembourg." Travaux scientifiques du Musée national d’histoire naturelle Luxembourg. 2005.Luxembourg’s biodiversity at risk.Maailma kahepaiksete andmebaas.Denis Lepage. "Luxembourg." Avibase.Ülevaade temperatuuridest. Luksemburgi meteoroloogiateenistus.Ülevaade Luksemburgist. Euroopa Liidu esinduse koduleht.Système politique. TerritoireÜlevaade Luksemburgi rahvastikust. Luksemburgi statistikaamet.Luksemburgi rahvastik. Luksemburgi statistikaamet.The World FactbookMonique Borsenberger, Paul Dickes. "Religions au Luxembourg. Quelle évolution entre 1999-2008". Luksemburgi statistikaamet. 2011.Luksemburgi peapiiskopkond. Catholic-Hierarchy.Luksemburgi armee koduleht.Luksemburgi armee relvastus.Eesti Välisministeerium.Luksemburgi rahvastik. Luksemburgi statistikaamet.Luksemburgi Eesti Seltsi koduleht.Helen Eelrand. "Raadio, mis muutis maailma." Eesti Päevaleht. 13. märts 2004.Ülevaade Luksemburgi haridussüsteemist.Ülevaade Luksemburgi keskkoolidest.Luksemburgr

            Valle di Casies Indice Geografia fisica | Origini del nome | Storia | Società | Amministrazione | Sport | Note | Bibliografia | Voci correlate | Altri progetti | Collegamenti esterni | Menu di navigazione46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)46°46′N 12°11′E / 46.766667°N 12.183333°E46.766667; 12.183333 (Valle di Casies)Sito istituzionaleAstat Censimento della popolazione 2011 - Determinazione della consistenza dei tre gruppi linguistici della Provincia Autonoma di Bolzano-Alto Adige - giugno 2012Numeri e fattiValle di CasiesDato IstatTabella dei gradi/giorno dei Comuni italiani raggruppati per Regione e Provincia26 agosto 1993, n. 412Heraldry of the World: GsiesStatistiche I.StatValCasies.comWikimedia CommonsWikimedia CommonsValle di CasiesSito ufficialeValle di CasiesMM14870458910042978-6