graphs in latexHow do I draw bar graphs in my LaTeX documents?Bipartite graphsDrawing graphs in LaTeXDirected graphsDrawing undirected graphs in LaTeXGraphs/Charts in LatexDrawing graphs in Latex using documentclass “memoir”

How much can I judge a company based on a phone screening?

Can lodestones be used to magnetize crude iron weapons?

Are there any other rule mechanics that could grant Thieves' Cant?

In which case does the Security misconfiguration vulnerability apply to?

Why is there a large performance impact when looping over an array over 240 elements?

What is the most difficult concept to grasp in Calculus 1?

How far did Gandalf and the Balrog drop from the bridge in Moria?

Causal Diagrams using Wolfram?

Locked Room Murder!! How and who?

What should we do with manuals from the 80s?

What kind of liquid can be seen 'leaking' from the upper surface of the wing of a Boeing 737-800?

Would the USA be eligible to join the European Union?

How was the murder committed?

Why does the cable resistance jump from a low value to high value at a particular frequency?

Are there examples in Tanach of 3 or more parties having an ongoing conversation?

Is there a way to proportionalize fixed costs in a MILP?

How can I find an old paper when the usual methods fail?

Help, I cannot decide when to start the story

Creating some gif with tikz: Any idea to get better result?

Global BGP Routing only by only importing supernet prefixes

Lípínguapua dopo Pêpê

(A room / an office) where an artist works

Did DOS zero out the BSS area when it loaded a program?

Xdebug not working over Drush



graphs in latex


How do I draw bar graphs in my LaTeX documents?Bipartite graphsDrawing graphs in LaTeXDirected graphsDrawing undirected graphs in LaTeXGraphs/Charts in LatexDrawing graphs in Latex using documentclass “memoir”






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















I am trying to build some kind of a tree, but in its node instead of a symbol I want to put a framebox. Also, in that framebox at a specific position I want an other framebox. While I couldn't find a way to use the tree structure that exists in latex in order to do so, I started putting frameboxes at the positions that I wanted. Thus, I built the following, but now I don't know how too draw a line that connects each bi to the s.



beginfigure

setlengthunitlength0.06in
centering

beginpicture(70,50)

put(25,35)framebox(14,10)Large server
put(0,5)framebox(14,10)Large browser 1
put(25,5)framebox(14,10)Large browser 2
put(50,5)framebox(14,10)Large browser 3
put(30.5,35)framebox(3,3)s
put(5.5,12)framebox(3,3)$b_1$
put(30.5,12)framebox(3,3)$b_2$
put(55.5,12) framebox(3,3)$b_3$

endpicture
endfigure









share|improve this question









New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

    – daleif
    8 hours ago

















2















I am trying to build some kind of a tree, but in its node instead of a symbol I want to put a framebox. Also, in that framebox at a specific position I want an other framebox. While I couldn't find a way to use the tree structure that exists in latex in order to do so, I started putting frameboxes at the positions that I wanted. Thus, I built the following, but now I don't know how too draw a line that connects each bi to the s.



beginfigure

setlengthunitlength0.06in
centering

beginpicture(70,50)

put(25,35)framebox(14,10)Large server
put(0,5)framebox(14,10)Large browser 1
put(25,5)framebox(14,10)Large browser 2
put(50,5)framebox(14,10)Large browser 3
put(30.5,35)framebox(3,3)s
put(5.5,12)framebox(3,3)$b_1$
put(30.5,12)framebox(3,3)$b_2$
put(55.5,12) framebox(3,3)$b_3$

endpicture
endfigure









share|improve this question









New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.
















  • 1





    Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

    – daleif
    8 hours ago













2












2








2








I am trying to build some kind of a tree, but in its node instead of a symbol I want to put a framebox. Also, in that framebox at a specific position I want an other framebox. While I couldn't find a way to use the tree structure that exists in latex in order to do so, I started putting frameboxes at the positions that I wanted. Thus, I built the following, but now I don't know how too draw a line that connects each bi to the s.



beginfigure

setlengthunitlength0.06in
centering

beginpicture(70,50)

put(25,35)framebox(14,10)Large server
put(0,5)framebox(14,10)Large browser 1
put(25,5)framebox(14,10)Large browser 2
put(50,5)framebox(14,10)Large browser 3
put(30.5,35)framebox(3,3)s
put(5.5,12)framebox(3,3)$b_1$
put(30.5,12)framebox(3,3)$b_2$
put(55.5,12) framebox(3,3)$b_3$

endpicture
endfigure









share|improve this question









New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.











I am trying to build some kind of a tree, but in its node instead of a symbol I want to put a framebox. Also, in that framebox at a specific position I want an other framebox. While I couldn't find a way to use the tree structure that exists in latex in order to do so, I started putting frameboxes at the positions that I wanted. Thus, I built the following, but now I don't know how too draw a line that connects each bi to the s.



beginfigure

setlengthunitlength0.06in
centering

beginpicture(70,50)

put(25,35)framebox(14,10)Large server
put(0,5)framebox(14,10)Large browser 1
put(25,5)framebox(14,10)Large browser 2
put(50,5)framebox(14,10)Large browser 3
put(30.5,35)framebox(3,3)s
put(5.5,12)framebox(3,3)$b_1$
put(30.5,12)framebox(3,3)$b_2$
put(55.5,12) framebox(3,3)$b_3$

endpicture
endfigure






diagrams picture-mode






share|improve this question









New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.










share|improve this question









New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








share|improve this question




share|improve this question








edited 8 hours ago









Torbjørn T.

164k13 gold badges268 silver badges454 bronze badges




164k13 gold badges268 silver badges454 bronze badges






New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.








asked 8 hours ago









janejane

111 bronze badge




111 bronze badge




New contributor



jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.




New contributor




jane is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.












  • 1





    Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

    – daleif
    8 hours ago












  • 1





    Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

    – daleif
    8 hours ago







1




1





Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

– daleif
8 hours ago





Switch to the tikz ecosystem immediately, the picture env is not worth spending time on. It even have cool libraries for drawing trees

– daleif
8 hours ago










2 Answers
2






active

oldest

votes


















6














Like this?



enter image description here



with forest and using nodes' labels is simple:



documentclass[border=1cm]standalone
usepackage[edges]forest

tikzsetevery label/.append style = draw, inner sep=2pt
begindocument
beginforest
for tree =
draw,
text width=22mm, minimum height=16mm,
font=Large,
text centered,
parent anchor=south,
child anchor=north,
%
l sep=8mm,
s sep=6mm,

[server, label=[anchor=south]below:s
[browser 1, label=[anchor=north]:$b_1$]
[browser 2, label=[anchor=north]:$b_2$]
[browser 3, label=[anchor=north]:$b_3$]
]
endforest
enddocument





share|improve this answer


































    5














    With pict2e you can easily draw segments specifying their end points.



    documentclassarticle
    usepackagepict2e

    begindocument

    beginfigure

    setlengthunitlength0.06in
    centering

    beginpicture(70,50)
    put(25,35)framebox(14,10)Large server
    put(0,5)framebox(14,10)Large browser 1
    put(25,5)framebox(14,10)Large browser 2
    put(50,5)framebox(14,10)Large browser 3
    put(30.5,35)framebox(3,3)s
    put(5.5,12)framebox(3,3)$b_1$
    put(30.5,12)framebox(3,3)$b_2$
    put(55.5,12) framebox(3,3)$b_3$
    Line(7,15)(32,35)
    Line(32,15)(32,35)
    Line(57,15)(32,35)
    endpicture

    endfigure

    enddocument


    enter image description here






    share|improve this answer

























    • Thanks, it was exactly what I was looking for. It works perfect.

      – jane
      6 hours ago













    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
    );



    );






    jane is a new contributor. Be nice, and check out our Code of Conduct.









    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f504210%2fgraphs-in-latex%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    2 Answers
    2






    active

    oldest

    votes








    2 Answers
    2






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    6














    Like this?



    enter image description here



    with forest and using nodes' labels is simple:



    documentclass[border=1cm]standalone
    usepackage[edges]forest

    tikzsetevery label/.append style = draw, inner sep=2pt
    begindocument
    beginforest
    for tree =
    draw,
    text width=22mm, minimum height=16mm,
    font=Large,
    text centered,
    parent anchor=south,
    child anchor=north,
    %
    l sep=8mm,
    s sep=6mm,

    [server, label=[anchor=south]below:s
    [browser 1, label=[anchor=north]:$b_1$]
    [browser 2, label=[anchor=north]:$b_2$]
    [browser 3, label=[anchor=north]:$b_3$]
    ]
    endforest
    enddocument





    share|improve this answer































      6














      Like this?



      enter image description here



      with forest and using nodes' labels is simple:



      documentclass[border=1cm]standalone
      usepackage[edges]forest

      tikzsetevery label/.append style = draw, inner sep=2pt
      begindocument
      beginforest
      for tree =
      draw,
      text width=22mm, minimum height=16mm,
      font=Large,
      text centered,
      parent anchor=south,
      child anchor=north,
      %
      l sep=8mm,
      s sep=6mm,

      [server, label=[anchor=south]below:s
      [browser 1, label=[anchor=north]:$b_1$]
      [browser 2, label=[anchor=north]:$b_2$]
      [browser 3, label=[anchor=north]:$b_3$]
      ]
      endforest
      enddocument





      share|improve this answer





























        6












        6








        6







        Like this?



        enter image description here



        with forest and using nodes' labels is simple:



        documentclass[border=1cm]standalone
        usepackage[edges]forest

        tikzsetevery label/.append style = draw, inner sep=2pt
        begindocument
        beginforest
        for tree =
        draw,
        text width=22mm, minimum height=16mm,
        font=Large,
        text centered,
        parent anchor=south,
        child anchor=north,
        %
        l sep=8mm,
        s sep=6mm,

        [server, label=[anchor=south]below:s
        [browser 1, label=[anchor=north]:$b_1$]
        [browser 2, label=[anchor=north]:$b_2$]
        [browser 3, label=[anchor=north]:$b_3$]
        ]
        endforest
        enddocument





        share|improve this answer















        Like this?



        enter image description here



        with forest and using nodes' labels is simple:



        documentclass[border=1cm]standalone
        usepackage[edges]forest

        tikzsetevery label/.append style = draw, inner sep=2pt
        begindocument
        beginforest
        for tree =
        draw,
        text width=22mm, minimum height=16mm,
        font=Large,
        text centered,
        parent anchor=south,
        child anchor=north,
        %
        l sep=8mm,
        s sep=6mm,

        [server, label=[anchor=south]below:s
        [browser 1, label=[anchor=north]:$b_1$]
        [browser 2, label=[anchor=north]:$b_2$]
        [browser 3, label=[anchor=north]:$b_3$]
        ]
        endforest
        enddocument






        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 6 hours ago

























        answered 7 hours ago









        ZarkoZarko

        143k8 gold badges80 silver badges192 bronze badges




        143k8 gold badges80 silver badges192 bronze badges


























            5














            With pict2e you can easily draw segments specifying their end points.



            documentclassarticle
            usepackagepict2e

            begindocument

            beginfigure

            setlengthunitlength0.06in
            centering

            beginpicture(70,50)
            put(25,35)framebox(14,10)Large server
            put(0,5)framebox(14,10)Large browser 1
            put(25,5)framebox(14,10)Large browser 2
            put(50,5)framebox(14,10)Large browser 3
            put(30.5,35)framebox(3,3)s
            put(5.5,12)framebox(3,3)$b_1$
            put(30.5,12)framebox(3,3)$b_2$
            put(55.5,12) framebox(3,3)$b_3$
            Line(7,15)(32,35)
            Line(32,15)(32,35)
            Line(57,15)(32,35)
            endpicture

            endfigure

            enddocument


            enter image description here






            share|improve this answer

























            • Thanks, it was exactly what I was looking for. It works perfect.

              – jane
              6 hours ago















            5














            With pict2e you can easily draw segments specifying their end points.



            documentclassarticle
            usepackagepict2e

            begindocument

            beginfigure

            setlengthunitlength0.06in
            centering

            beginpicture(70,50)
            put(25,35)framebox(14,10)Large server
            put(0,5)framebox(14,10)Large browser 1
            put(25,5)framebox(14,10)Large browser 2
            put(50,5)framebox(14,10)Large browser 3
            put(30.5,35)framebox(3,3)s
            put(5.5,12)framebox(3,3)$b_1$
            put(30.5,12)framebox(3,3)$b_2$
            put(55.5,12) framebox(3,3)$b_3$
            Line(7,15)(32,35)
            Line(32,15)(32,35)
            Line(57,15)(32,35)
            endpicture

            endfigure

            enddocument


            enter image description here






            share|improve this answer

























            • Thanks, it was exactly what I was looking for. It works perfect.

              – jane
              6 hours ago













            5












            5








            5







            With pict2e you can easily draw segments specifying their end points.



            documentclassarticle
            usepackagepict2e

            begindocument

            beginfigure

            setlengthunitlength0.06in
            centering

            beginpicture(70,50)
            put(25,35)framebox(14,10)Large server
            put(0,5)framebox(14,10)Large browser 1
            put(25,5)framebox(14,10)Large browser 2
            put(50,5)framebox(14,10)Large browser 3
            put(30.5,35)framebox(3,3)s
            put(5.5,12)framebox(3,3)$b_1$
            put(30.5,12)framebox(3,3)$b_2$
            put(55.5,12) framebox(3,3)$b_3$
            Line(7,15)(32,35)
            Line(32,15)(32,35)
            Line(57,15)(32,35)
            endpicture

            endfigure

            enddocument


            enter image description here






            share|improve this answer













            With pict2e you can easily draw segments specifying their end points.



            documentclassarticle
            usepackagepict2e

            begindocument

            beginfigure

            setlengthunitlength0.06in
            centering

            beginpicture(70,50)
            put(25,35)framebox(14,10)Large server
            put(0,5)framebox(14,10)Large browser 1
            put(25,5)framebox(14,10)Large browser 2
            put(50,5)framebox(14,10)Large browser 3
            put(30.5,35)framebox(3,3)s
            put(5.5,12)framebox(3,3)$b_1$
            put(30.5,12)framebox(3,3)$b_2$
            put(55.5,12) framebox(3,3)$b_3$
            Line(7,15)(32,35)
            Line(32,15)(32,35)
            Line(57,15)(32,35)
            endpicture

            endfigure

            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 6 hours ago









            egregegreg

            762k90 gold badges1991 silver badges3339 bronze badges




            762k90 gold badges1991 silver badges3339 bronze badges















            • Thanks, it was exactly what I was looking for. It works perfect.

              – jane
              6 hours ago

















            • Thanks, it was exactly what I was looking for. It works perfect.

              – jane
              6 hours ago
















            Thanks, it was exactly what I was looking for. It works perfect.

            – jane
            6 hours ago





            Thanks, it was exactly what I was looking for. It works perfect.

            – jane
            6 hours ago










            jane is a new contributor. Be nice, and check out our Code of Conduct.









            draft saved

            draft discarded


















            jane is a new contributor. Be nice, and check out our Code of Conduct.












            jane is a new contributor. Be nice, and check out our Code of Conduct.











            jane is a new contributor. Be nice, and check out our Code of Conduct.














            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%2f504210%2fgraphs-in-latex%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

            Invision Community Contents History See also References External links Navigation menuProprietaryinvisioncommunity.comIPS Community ForumsIPS Community Forumsthis blog entry"License Changes, IP.Board 3.4, and the Future""Interview -- Matt Mecham of Ibforums""CEO Invision Power Board, Matt Mecham Is a Liar, Thief!"IPB License Explanation 1.3, 1.3.1, 2.0, and 2.1ArchivedSecurity Fixes, Updates And Enhancements For IPB 1.3.1Archived"New Demo Accounts - Invision Power Services"the original"New Default Skin"the original"Invision Power Board 3.0.0 and Applications Released"the original"Archived copy"the original"Perpetual licenses being done away with""Release Notes - Invision Power Services""Introducing: IPS Community Suite 4!"Invision Community Release Notes

            Canceling a color specificationRandomly assigning color to Graphics3D objects?Default color for Filling in Mathematica 9Coloring specific elements of sets with a prime modified order in an array plotHow to pick a color differing significantly from the colors already in a given color list?Detection of the text colorColor numbers based on their valueCan color schemes for use with ColorData include opacity specification?My dynamic color schemes

            Ласкавець круглолистий Зміст Опис | Поширення | Галерея | Примітки | Посилання | Навігаційне меню58171138361-22960890446Bupleurum rotundifoliumEuro+Med PlantbasePlants of the World Online — Kew ScienceGermplasm Resources Information Network (GRIN)Ласкавецькн. VI : Літери Ком — Левиправивши або дописавши її