Problem drawing boxes with arrows in tikZ Announcing the arrival of Valued Associate #679: Cesar Manara Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)TikZ node placement and arrow drawingHow to define the default vertical distance between nodes?Computing the rectangle encompassing a node and a pointNumerical conditional within tikz keys?Input/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?

Why constant symbols in a language?

Is it ethical to give a final exam after the professor has quit before teaching the remaining chapters of the course?

Diagram with tikz

What would be the ideal power source for a cybernetic eye?

Does accepting a pardon have any bearing on trying that person for the same crime in a sovereign jurisdiction?

How do I stop a creek from eroding my steep embankment?

Single word antonym of "flightless"

Should I discuss the type of campaign with my players?

Is the argument below valid?

If a contract sometimes uses the wrong name, is it still valid?

What is the correct way to use the pinch test for dehydration?

Dating a Former Employee

Problem drawing boxes with arrows in tikZ

How to deal with a team lead who never gives me credit?

Check which numbers satisfy the condition [A*B*C = A! + B! + C!]

Why is black pepper both grey and black?

What do you call a phrase that's not an idiom yet?

Did Kevin spill real chili?

Were Kohanim forbidden from serving in King David's army?

Is there a "higher Segal conjecture"?

How do I mention the quality of my school without bragging

How to find all the available tools in macOS terminal?

Gastric acid as a weapon

Stars Make Stars



Problem drawing boxes with arrows in tikZ



Announcing the arrival of Valued Associate #679: Cesar Manara
Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern)TikZ node placement and arrow drawingHow to define the default vertical distance between nodes?Computing the rectangle encompassing a node and a pointNumerical conditional within tikz keys?Input/Output Nodes - Specification and Description LanguageTikZ: Drawing an arc from an intersection to an intersectionHow to prevent rounded and duplicated tick labels in pgfplots with fixed precision?Drawing rectilinear curves in Tikz, aka an Etch-a-Sketch drawingLine up nested tikz enviroments or how to get rid of themHow to draw a square and its diagonals with arrows?










1















Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):



documentclass[tikz]standalone
begindocument
tikzstylevspecies=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begintikzpicture

node [vspecies] (I) I ;
node [vspecies, above left of = I] (N) M ;
node [vspecies, below left of = I] (K) K ;
draw [->,thick] (S.south east) -- node small$N$ (M) ; ;
draw [->,thick] (C) -- node [below right] small$M$ (M) ;

endtikzpicture
enddocument


enter image description here










share|improve this question







New contributor




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















  • 1





    You can use local bounding box. Btw, your code is not even compilable

    – JouleV
    1 hour ago
















1















Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):



documentclass[tikz]standalone
begindocument
tikzstylevspecies=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begintikzpicture

node [vspecies] (I) I ;
node [vspecies, above left of = I] (N) M ;
node [vspecies, below left of = I] (K) K ;
draw [->,thick] (S.south east) -- node small$N$ (M) ; ;
draw [->,thick] (C) -- node [below right] small$M$ (M) ;

endtikzpicture
enddocument


enter image description here










share|improve this question







New contributor




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















  • 1





    You can use local bounding box. Btw, your code is not even compilable

    – JouleV
    1 hour ago














1












1








1


0






Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):



documentclass[tikz]standalone
begindocument
tikzstylevspecies=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begintikzpicture

node [vspecies] (I) I ;
node [vspecies, above left of = I] (N) M ;
node [vspecies, below left of = I] (K) K ;
draw [->,thick] (S.south east) -- node small$N$ (M) ; ;
draw [->,thick] (C) -- node [below right] small$M$ (M) ;

endtikzpicture
enddocument


enter image description here










share|improve this question







New contributor




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












Could someone, whenever it's possible, post a minimal tikZ example to draw this? I also would like to put an "R" inside the upper box. This is mi code so far (I know, it's a mess):



documentclass[tikz]standalone
begindocument
tikzstylevspecies=[rectangle, minimum size=0.5cm,draw=black,fill=blue]
begintikzpicture

node [vspecies] (I) I ;
node [vspecies, above left of = I] (N) M ;
node [vspecies, below left of = I] (K) K ;
draw [->,thick] (S.south east) -- node small$N$ (M) ; ;
draw [->,thick] (C) -- node [below right] small$M$ (M) ;

endtikzpicture
enddocument


enter image description here







tikz-pgf






share|improve this question







New contributor




naveganteX 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




naveganteX 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






New contributor




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









asked 1 hour ago









naveganteXnaveganteX

465




465




New contributor




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





New contributor





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






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







  • 1





    You can use local bounding box. Btw, your code is not even compilable

    – JouleV
    1 hour ago













  • 1





    You can use local bounding box. Btw, your code is not even compilable

    – JouleV
    1 hour ago








1




1





You can use local bounding box. Btw, your code is not even compilable

– JouleV
1 hour ago






You can use local bounding box. Btw, your code is not even compilable

– JouleV
1 hour ago











4 Answers
4






active

oldest

votes


















2














Just for fun.



documentclass[tikz]standalone
usetikzlibrarypositioning
begindocument
tikzsetvspecies/.style=rectangle, minimum size=0.5cm,draw=blue
begintikzpicture[>=latex]
node[draw,minimum width=1cm,minimum height=2cm,
label=left:$M$,label=above:$N$] (R)$R$;
node [vspecies,below left=1cm and 0.2cm of R,minimum height=1.2cm,
label=left:$M$,label=above:$K$] (R1) ;
node [vspecies,below right=1cm and 0.2cm of R,minimum width=1.2cm,
label=left:$K$,label=above:$N$] (R2) ;
draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south west) -- (R1.north east);
draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south east) -- (R2.north west);
endtikzpicture
enddocument


enter image description here






share|improve this answer






























    2














    Something like this?



    documentclass[tikz,margin=1mm]standalone
    usetikzlibrarypositioning
    begindocument
    begintikzpicture
    beginscope[local bounding box=a]
    node[minimum width=2cm,minimum height=3cm,draw] (main-a) ;
    path (main-a.west) node[left] $N$ (main-a.north) node[above] $M$;
    endscope
    beginscope[local bounding box=b2]
    node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) ;
    path (main-b2.east) node[right] $K$ (main-b2.north) node[above] $M$;
    endscope
    beginscope[local bounding box=b1]
    node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) ;
    path (main-b1.west) node[left] $N$ (main-b1.north) node[above] $K$;
    endscope
    draw[-stealth] (main-a.south) -- (b1.north east);
    draw[-stealth] (main-a.south) -- (b2.north west);
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer























    • Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

      – naveganteX
      1 hour ago






    • 1





      @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

      – JouleV
      1 hour ago











    • I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

      – naveganteX
      59 mins ago


















    1














    Here is an overkill solution that defines a new pics "shape" (see section 18.2 of the 3.1.1 tikz manual),together with some custom pgfkeys for styling it. The end result is that you can produce:



    enter image description here



    using code:



    documentclass[tikz, border=5mm]standalone
    usetikzlibrarypositioning

    begindocument
    pgfkeys/vspecies/.is family, /vspecies,
    colour/.initial = black, % rectangle colour
    fill/.initial = white, % default fill
    top label/.initial = M, % label on right
    right label/.initial= N, % label on left
    bottom label/.initial=, % label on left
    left label/.initial=, % label on left
    X/.initial = 5mm, % default width
    Y/.initial = 5mm, % default height
    shape/.initial = rectangle % default shape


    tikzset
    pics/vspecies/.style args=#1,#2% node name, pgfkeys key-value pairs
    code =
    pgfkeys/vspecies, #2
    node[pgfkeysvalueof/vspecies/shape,
    minimum size=pgfkeysvalueof/vspecies/X,
    minimum height=pgfkeysvalueof/vspecies/Y,
    draw=pgfkeysvalueof/vspecies/colour,
    fill=pgfkeysvalueof/vspecies/fill,
    label=east:pgfkeysvalueof/vspecies/left label,
    label=north:pgfkeysvalueof/vspecies/top label,
    label=south:pgfkeysvalueof/vspecies/bottom label,
    label=west:pgfkeysvalueof/vspecies/right label,
    ](#1) at (0,0);




    begintikzpicture
    pic at (0,0) vspecies=A,colour=red,Y=10mm;
    pic[below left=10mm of A] vspecies=B,top label=K,colour=blue,Y=20mm;
    pic[below right=10mm of A] vspecies=C,fill=blue!10,X=10mm,shape=circle,left label=N,right label=;
    draw[->](A.south west)--(B.north east);
    draw[->](A.south east)--(C.north west);
    endtikzpicture

    enddocument


    The vspecies pic command take two arguments: the first is the name of a (normal) tikz node label and the second argunment is a comma separated list of key-value pairs tha specify:



    • the colour of the rectangle (default black)

    • the fill colour (default white)

    • the top label (default M)

    • the left label (default "")

    • the bottom label (default "")

    • the left label (default N)

    • the minimum X width

    • the minimum Y height

    • the shape (default rectangle)

    As I said, this is overkill (and I was bored:)






    share|improve this answer






























      0














      Final version:



      documentclass[tikz,margin=1mm]standalone
      usetikzlibrarypositioning
      begindocument
      sffamily
      begintikzpicture
      beginscope[local bounding box=a]
      node[minimum width=2cm,line width=0.199mm,minimum height=3cm,draw=black] (main-a) R;
      path (main-a.west) node[left] N (main-a.north) node[above] M;
      endscope
      beginscope[local bounding box=b2]
      node[minimum width=2cm,line width=0.199mm,minimum height=1cm,draw=blue,below right=of main-a] (main-b2) ;
      path (main-b2.east) node[right] K (main-b2.north) node[above] M;
      endscope
      beginscope[local bounding box=b1]
      node[minimum width=1cm,line width=0.199mm,minimum height=3cm,draw=blue,below left=of main-a] (main-b1) ;
      path (main-b1.west) node[left] N (main-b1.north) node[above] K;
      endscope
      draw[-stealth] (main-a.south) -- (b1.north east);
      draw[-stealth] (main-a.south) -- (b2.north west);
      endtikzpicture
      enddocument





      share|improve this answer








      New contributor




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




















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



        );






        naveganteX 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%2f485078%2fproblem-drawing-boxes-with-arrows-in-tikz%23new-answer', 'question_page');

        );

        Post as a guest















        Required, but never shown

























        4 Answers
        4






        active

        oldest

        votes








        4 Answers
        4






        active

        oldest

        votes









        active

        oldest

        votes






        active

        oldest

        votes









        2














        Just for fun.



        documentclass[tikz]standalone
        usetikzlibrarypositioning
        begindocument
        tikzsetvspecies/.style=rectangle, minimum size=0.5cm,draw=blue
        begintikzpicture[>=latex]
        node[draw,minimum width=1cm,minimum height=2cm,
        label=left:$M$,label=above:$N$] (R)$R$;
        node [vspecies,below left=1cm and 0.2cm of R,minimum height=1.2cm,
        label=left:$M$,label=above:$K$] (R1) ;
        node [vspecies,below right=1cm and 0.2cm of R,minimum width=1.2cm,
        label=left:$K$,label=above:$N$] (R2) ;
        draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south west) -- (R1.north east);
        draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south east) -- (R2.north west);
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer



























          2














          Just for fun.



          documentclass[tikz]standalone
          usetikzlibrarypositioning
          begindocument
          tikzsetvspecies/.style=rectangle, minimum size=0.5cm,draw=blue
          begintikzpicture[>=latex]
          node[draw,minimum width=1cm,minimum height=2cm,
          label=left:$M$,label=above:$N$] (R)$R$;
          node [vspecies,below left=1cm and 0.2cm of R,minimum height=1.2cm,
          label=left:$M$,label=above:$K$] (R1) ;
          node [vspecies,below right=1cm and 0.2cm of R,minimum width=1.2cm,
          label=left:$K$,label=above:$N$] (R2) ;
          draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south west) -- (R1.north east);
          draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south east) -- (R2.north west);
          endtikzpicture
          enddocument


          enter image description here






          share|improve this answer

























            2












            2








            2







            Just for fun.



            documentclass[tikz]standalone
            usetikzlibrarypositioning
            begindocument
            tikzsetvspecies/.style=rectangle, minimum size=0.5cm,draw=blue
            begintikzpicture[>=latex]
            node[draw,minimum width=1cm,minimum height=2cm,
            label=left:$M$,label=above:$N$] (R)$R$;
            node [vspecies,below left=1cm and 0.2cm of R,minimum height=1.2cm,
            label=left:$M$,label=above:$K$] (R1) ;
            node [vspecies,below right=1cm and 0.2cm of R,minimum width=1.2cm,
            label=left:$K$,label=above:$N$] (R2) ;
            draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south west) -- (R1.north east);
            draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south east) -- (R2.north west);
            endtikzpicture
            enddocument


            enter image description here






            share|improve this answer













            Just for fun.



            documentclass[tikz]standalone
            usetikzlibrarypositioning
            begindocument
            tikzsetvspecies/.style=rectangle, minimum size=0.5cm,draw=blue
            begintikzpicture[>=latex]
            node[draw,minimum width=1cm,minimum height=2cm,
            label=left:$M$,label=above:$N$] (R)$R$;
            node [vspecies,below left=1cm and 0.2cm of R,minimum height=1.2cm,
            label=left:$M$,label=above:$K$] (R1) ;
            node [vspecies,below right=1cm and 0.2cm of R,minimum width=1.2cm,
            label=left:$K$,label=above:$N$] (R2) ;
            draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south west) -- (R1.north east);
            draw [->,thick,shorten >=1mm,shorten <=1mm] (R.south east) -- (R2.north west);
            endtikzpicture
            enddocument


            enter image description here







            share|improve this answer












            share|improve this answer



            share|improve this answer










            answered 1 hour ago









            marmotmarmot

            118k6152286




            118k6152286





















                2














                Something like this?



                documentclass[tikz,margin=1mm]standalone
                usetikzlibrarypositioning
                begindocument
                begintikzpicture
                beginscope[local bounding box=a]
                node[minimum width=2cm,minimum height=3cm,draw] (main-a) ;
                path (main-a.west) node[left] $N$ (main-a.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b2]
                node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) ;
                path (main-b2.east) node[right] $K$ (main-b2.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b1]
                node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) ;
                path (main-b1.west) node[left] $N$ (main-b1.north) node[above] $K$;
                endscope
                draw[-stealth] (main-a.south) -- (b1.north east);
                draw[-stealth] (main-a.south) -- (b2.north west);
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer























                • Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                  – naveganteX
                  1 hour ago






                • 1





                  @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                  – JouleV
                  1 hour ago











                • I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                  – naveganteX
                  59 mins ago















                2














                Something like this?



                documentclass[tikz,margin=1mm]standalone
                usetikzlibrarypositioning
                begindocument
                begintikzpicture
                beginscope[local bounding box=a]
                node[minimum width=2cm,minimum height=3cm,draw] (main-a) ;
                path (main-a.west) node[left] $N$ (main-a.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b2]
                node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) ;
                path (main-b2.east) node[right] $K$ (main-b2.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b1]
                node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) ;
                path (main-b1.west) node[left] $N$ (main-b1.north) node[above] $K$;
                endscope
                draw[-stealth] (main-a.south) -- (b1.north east);
                draw[-stealth] (main-a.south) -- (b2.north west);
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer























                • Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                  – naveganteX
                  1 hour ago






                • 1





                  @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                  – JouleV
                  1 hour ago











                • I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                  – naveganteX
                  59 mins ago













                2












                2








                2







                Something like this?



                documentclass[tikz,margin=1mm]standalone
                usetikzlibrarypositioning
                begindocument
                begintikzpicture
                beginscope[local bounding box=a]
                node[minimum width=2cm,minimum height=3cm,draw] (main-a) ;
                path (main-a.west) node[left] $N$ (main-a.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b2]
                node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) ;
                path (main-b2.east) node[right] $K$ (main-b2.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b1]
                node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) ;
                path (main-b1.west) node[left] $N$ (main-b1.north) node[above] $K$;
                endscope
                draw[-stealth] (main-a.south) -- (b1.north east);
                draw[-stealth] (main-a.south) -- (b2.north west);
                endtikzpicture
                enddocument


                enter image description here






                share|improve this answer













                Something like this?



                documentclass[tikz,margin=1mm]standalone
                usetikzlibrarypositioning
                begindocument
                begintikzpicture
                beginscope[local bounding box=a]
                node[minimum width=2cm,minimum height=3cm,draw] (main-a) ;
                path (main-a.west) node[left] $N$ (main-a.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b2]
                node[minimum width=2cm,minimum height=1cm,draw,below right=of main-a] (main-b2) ;
                path (main-b2.east) node[right] $K$ (main-b2.north) node[above] $M$;
                endscope
                beginscope[local bounding box=b1]
                node[minimum width=1cm,minimum height=3cm,draw,below left=of main-a] (main-b1) ;
                path (main-b1.west) node[left] $N$ (main-b1.north) node[above] $K$;
                endscope
                draw[-stealth] (main-a.south) -- (b1.north east);
                draw[-stealth] (main-a.south) -- (b2.north west);
                endtikzpicture
                enddocument


                enter image description here







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered 1 hour ago









                JouleVJouleV

                13.9k22664




                13.9k22664












                • Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                  – naveganteX
                  1 hour ago






                • 1





                  @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                  – JouleV
                  1 hour ago











                • I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                  – naveganteX
                  59 mins ago

















                • Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                  – naveganteX
                  1 hour ago






                • 1





                  @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                  – JouleV
                  1 hour ago











                • I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                  – naveganteX
                  59 mins ago
















                Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                – naveganteX
                1 hour ago





                Are you a kind of wizard with TeX? I must admit that I'm impressed. I read up on tikZ but it is still hard for me. So, thank you for giving me a hand with this rather tough Tex world!

                – naveganteX
                1 hour ago




                1




                1





                @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                – JouleV
                1 hour ago





                @naveganteX I'm not yet a "wizard" with either TikZ or LaTeX. I'm a complete novice in TeX :D There are so many TeXperts out there, but I am not one of them, of course. I don't even know anything about TikZ 3D yet (it is in my ever to-do list)

                – JouleV
                1 hour ago













                I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                – naveganteX
                59 mins ago





                I happen to think that you're pretty good at both, tikz and Tex. Regarding tikZ 3d, I have been wanting to plot those 3D histograms/bar chart for so long. But at the moment, it is just an illusion!

                – naveganteX
                59 mins ago











                1














                Here is an overkill solution that defines a new pics "shape" (see section 18.2 of the 3.1.1 tikz manual),together with some custom pgfkeys for styling it. The end result is that you can produce:



                enter image description here



                using code:



                documentclass[tikz, border=5mm]standalone
                usetikzlibrarypositioning

                begindocument
                pgfkeys/vspecies/.is family, /vspecies,
                colour/.initial = black, % rectangle colour
                fill/.initial = white, % default fill
                top label/.initial = M, % label on right
                right label/.initial= N, % label on left
                bottom label/.initial=, % label on left
                left label/.initial=, % label on left
                X/.initial = 5mm, % default width
                Y/.initial = 5mm, % default height
                shape/.initial = rectangle % default shape


                tikzset
                pics/vspecies/.style args=#1,#2% node name, pgfkeys key-value pairs
                code =
                pgfkeys/vspecies, #2
                node[pgfkeysvalueof/vspecies/shape,
                minimum size=pgfkeysvalueof/vspecies/X,
                minimum height=pgfkeysvalueof/vspecies/Y,
                draw=pgfkeysvalueof/vspecies/colour,
                fill=pgfkeysvalueof/vspecies/fill,
                label=east:pgfkeysvalueof/vspecies/left label,
                label=north:pgfkeysvalueof/vspecies/top label,
                label=south:pgfkeysvalueof/vspecies/bottom label,
                label=west:pgfkeysvalueof/vspecies/right label,
                ](#1) at (0,0);




                begintikzpicture
                pic at (0,0) vspecies=A,colour=red,Y=10mm;
                pic[below left=10mm of A] vspecies=B,top label=K,colour=blue,Y=20mm;
                pic[below right=10mm of A] vspecies=C,fill=blue!10,X=10mm,shape=circle,left label=N,right label=;
                draw[->](A.south west)--(B.north east);
                draw[->](A.south east)--(C.north west);
                endtikzpicture

                enddocument


                The vspecies pic command take two arguments: the first is the name of a (normal) tikz node label and the second argunment is a comma separated list of key-value pairs tha specify:



                • the colour of the rectangle (default black)

                • the fill colour (default white)

                • the top label (default M)

                • the left label (default "")

                • the bottom label (default "")

                • the left label (default N)

                • the minimum X width

                • the minimum Y height

                • the shape (default rectangle)

                As I said, this is overkill (and I was bored:)






                share|improve this answer



























                  1














                  Here is an overkill solution that defines a new pics "shape" (see section 18.2 of the 3.1.1 tikz manual),together with some custom pgfkeys for styling it. The end result is that you can produce:



                  enter image description here



                  using code:



                  documentclass[tikz, border=5mm]standalone
                  usetikzlibrarypositioning

                  begindocument
                  pgfkeys/vspecies/.is family, /vspecies,
                  colour/.initial = black, % rectangle colour
                  fill/.initial = white, % default fill
                  top label/.initial = M, % label on right
                  right label/.initial= N, % label on left
                  bottom label/.initial=, % label on left
                  left label/.initial=, % label on left
                  X/.initial = 5mm, % default width
                  Y/.initial = 5mm, % default height
                  shape/.initial = rectangle % default shape


                  tikzset
                  pics/vspecies/.style args=#1,#2% node name, pgfkeys key-value pairs
                  code =
                  pgfkeys/vspecies, #2
                  node[pgfkeysvalueof/vspecies/shape,
                  minimum size=pgfkeysvalueof/vspecies/X,
                  minimum height=pgfkeysvalueof/vspecies/Y,
                  draw=pgfkeysvalueof/vspecies/colour,
                  fill=pgfkeysvalueof/vspecies/fill,
                  label=east:pgfkeysvalueof/vspecies/left label,
                  label=north:pgfkeysvalueof/vspecies/top label,
                  label=south:pgfkeysvalueof/vspecies/bottom label,
                  label=west:pgfkeysvalueof/vspecies/right label,
                  ](#1) at (0,0);




                  begintikzpicture
                  pic at (0,0) vspecies=A,colour=red,Y=10mm;
                  pic[below left=10mm of A] vspecies=B,top label=K,colour=blue,Y=20mm;
                  pic[below right=10mm of A] vspecies=C,fill=blue!10,X=10mm,shape=circle,left label=N,right label=;
                  draw[->](A.south west)--(B.north east);
                  draw[->](A.south east)--(C.north west);
                  endtikzpicture

                  enddocument


                  The vspecies pic command take two arguments: the first is the name of a (normal) tikz node label and the second argunment is a comma separated list of key-value pairs tha specify:



                  • the colour of the rectangle (default black)

                  • the fill colour (default white)

                  • the top label (default M)

                  • the left label (default "")

                  • the bottom label (default "")

                  • the left label (default N)

                  • the minimum X width

                  • the minimum Y height

                  • the shape (default rectangle)

                  As I said, this is overkill (and I was bored:)






                  share|improve this answer

























                    1












                    1








                    1







                    Here is an overkill solution that defines a new pics "shape" (see section 18.2 of the 3.1.1 tikz manual),together with some custom pgfkeys for styling it. The end result is that you can produce:



                    enter image description here



                    using code:



                    documentclass[tikz, border=5mm]standalone
                    usetikzlibrarypositioning

                    begindocument
                    pgfkeys/vspecies/.is family, /vspecies,
                    colour/.initial = black, % rectangle colour
                    fill/.initial = white, % default fill
                    top label/.initial = M, % label on right
                    right label/.initial= N, % label on left
                    bottom label/.initial=, % label on left
                    left label/.initial=, % label on left
                    X/.initial = 5mm, % default width
                    Y/.initial = 5mm, % default height
                    shape/.initial = rectangle % default shape


                    tikzset
                    pics/vspecies/.style args=#1,#2% node name, pgfkeys key-value pairs
                    code =
                    pgfkeys/vspecies, #2
                    node[pgfkeysvalueof/vspecies/shape,
                    minimum size=pgfkeysvalueof/vspecies/X,
                    minimum height=pgfkeysvalueof/vspecies/Y,
                    draw=pgfkeysvalueof/vspecies/colour,
                    fill=pgfkeysvalueof/vspecies/fill,
                    label=east:pgfkeysvalueof/vspecies/left label,
                    label=north:pgfkeysvalueof/vspecies/top label,
                    label=south:pgfkeysvalueof/vspecies/bottom label,
                    label=west:pgfkeysvalueof/vspecies/right label,
                    ](#1) at (0,0);




                    begintikzpicture
                    pic at (0,0) vspecies=A,colour=red,Y=10mm;
                    pic[below left=10mm of A] vspecies=B,top label=K,colour=blue,Y=20mm;
                    pic[below right=10mm of A] vspecies=C,fill=blue!10,X=10mm,shape=circle,left label=N,right label=;
                    draw[->](A.south west)--(B.north east);
                    draw[->](A.south east)--(C.north west);
                    endtikzpicture

                    enddocument


                    The vspecies pic command take two arguments: the first is the name of a (normal) tikz node label and the second argunment is a comma separated list of key-value pairs tha specify:



                    • the colour of the rectangle (default black)

                    • the fill colour (default white)

                    • the top label (default M)

                    • the left label (default "")

                    • the bottom label (default "")

                    • the left label (default N)

                    • the minimum X width

                    • the minimum Y height

                    • the shape (default rectangle)

                    As I said, this is overkill (and I was bored:)






                    share|improve this answer













                    Here is an overkill solution that defines a new pics "shape" (see section 18.2 of the 3.1.1 tikz manual),together with some custom pgfkeys for styling it. The end result is that you can produce:



                    enter image description here



                    using code:



                    documentclass[tikz, border=5mm]standalone
                    usetikzlibrarypositioning

                    begindocument
                    pgfkeys/vspecies/.is family, /vspecies,
                    colour/.initial = black, % rectangle colour
                    fill/.initial = white, % default fill
                    top label/.initial = M, % label on right
                    right label/.initial= N, % label on left
                    bottom label/.initial=, % label on left
                    left label/.initial=, % label on left
                    X/.initial = 5mm, % default width
                    Y/.initial = 5mm, % default height
                    shape/.initial = rectangle % default shape


                    tikzset
                    pics/vspecies/.style args=#1,#2% node name, pgfkeys key-value pairs
                    code =
                    pgfkeys/vspecies, #2
                    node[pgfkeysvalueof/vspecies/shape,
                    minimum size=pgfkeysvalueof/vspecies/X,
                    minimum height=pgfkeysvalueof/vspecies/Y,
                    draw=pgfkeysvalueof/vspecies/colour,
                    fill=pgfkeysvalueof/vspecies/fill,
                    label=east:pgfkeysvalueof/vspecies/left label,
                    label=north:pgfkeysvalueof/vspecies/top label,
                    label=south:pgfkeysvalueof/vspecies/bottom label,
                    label=west:pgfkeysvalueof/vspecies/right label,
                    ](#1) at (0,0);




                    begintikzpicture
                    pic at (0,0) vspecies=A,colour=red,Y=10mm;
                    pic[below left=10mm of A] vspecies=B,top label=K,colour=blue,Y=20mm;
                    pic[below right=10mm of A] vspecies=C,fill=blue!10,X=10mm,shape=circle,left label=N,right label=;
                    draw[->](A.south west)--(B.north east);
                    draw[->](A.south east)--(C.north west);
                    endtikzpicture

                    enddocument


                    The vspecies pic command take two arguments: the first is the name of a (normal) tikz node label and the second argunment is a comma separated list of key-value pairs tha specify:



                    • the colour of the rectangle (default black)

                    • the fill colour (default white)

                    • the top label (default M)

                    • the left label (default "")

                    • the bottom label (default "")

                    • the left label (default N)

                    • the minimum X width

                    • the minimum Y height

                    • the shape (default rectangle)

                    As I said, this is overkill (and I was bored:)







                    share|improve this answer












                    share|improve this answer



                    share|improve this answer










                    answered 21 mins ago









                    AndrewAndrew

                    31k34482




                    31k34482





















                        0














                        Final version:



                        documentclass[tikz,margin=1mm]standalone
                        usetikzlibrarypositioning
                        begindocument
                        sffamily
                        begintikzpicture
                        beginscope[local bounding box=a]
                        node[minimum width=2cm,line width=0.199mm,minimum height=3cm,draw=black] (main-a) R;
                        path (main-a.west) node[left] N (main-a.north) node[above] M;
                        endscope
                        beginscope[local bounding box=b2]
                        node[minimum width=2cm,line width=0.199mm,minimum height=1cm,draw=blue,below right=of main-a] (main-b2) ;
                        path (main-b2.east) node[right] K (main-b2.north) node[above] M;
                        endscope
                        beginscope[local bounding box=b1]
                        node[minimum width=1cm,line width=0.199mm,minimum height=3cm,draw=blue,below left=of main-a] (main-b1) ;
                        path (main-b1.west) node[left] N (main-b1.north) node[above] K;
                        endscope
                        draw[-stealth] (main-a.south) -- (b1.north east);
                        draw[-stealth] (main-a.south) -- (b2.north west);
                        endtikzpicture
                        enddocument





                        share|improve this answer








                        New contributor




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
























                          0














                          Final version:



                          documentclass[tikz,margin=1mm]standalone
                          usetikzlibrarypositioning
                          begindocument
                          sffamily
                          begintikzpicture
                          beginscope[local bounding box=a]
                          node[minimum width=2cm,line width=0.199mm,minimum height=3cm,draw=black] (main-a) R;
                          path (main-a.west) node[left] N (main-a.north) node[above] M;
                          endscope
                          beginscope[local bounding box=b2]
                          node[minimum width=2cm,line width=0.199mm,minimum height=1cm,draw=blue,below right=of main-a] (main-b2) ;
                          path (main-b2.east) node[right] K (main-b2.north) node[above] M;
                          endscope
                          beginscope[local bounding box=b1]
                          node[minimum width=1cm,line width=0.199mm,minimum height=3cm,draw=blue,below left=of main-a] (main-b1) ;
                          path (main-b1.west) node[left] N (main-b1.north) node[above] K;
                          endscope
                          draw[-stealth] (main-a.south) -- (b1.north east);
                          draw[-stealth] (main-a.south) -- (b2.north west);
                          endtikzpicture
                          enddocument





                          share|improve this answer








                          New contributor




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






















                            0












                            0








                            0







                            Final version:



                            documentclass[tikz,margin=1mm]standalone
                            usetikzlibrarypositioning
                            begindocument
                            sffamily
                            begintikzpicture
                            beginscope[local bounding box=a]
                            node[minimum width=2cm,line width=0.199mm,minimum height=3cm,draw=black] (main-a) R;
                            path (main-a.west) node[left] N (main-a.north) node[above] M;
                            endscope
                            beginscope[local bounding box=b2]
                            node[minimum width=2cm,line width=0.199mm,minimum height=1cm,draw=blue,below right=of main-a] (main-b2) ;
                            path (main-b2.east) node[right] K (main-b2.north) node[above] M;
                            endscope
                            beginscope[local bounding box=b1]
                            node[minimum width=1cm,line width=0.199mm,minimum height=3cm,draw=blue,below left=of main-a] (main-b1) ;
                            path (main-b1.west) node[left] N (main-b1.north) node[above] K;
                            endscope
                            draw[-stealth] (main-a.south) -- (b1.north east);
                            draw[-stealth] (main-a.south) -- (b2.north west);
                            endtikzpicture
                            enddocument





                            share|improve this answer








                            New contributor




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










                            Final version:



                            documentclass[tikz,margin=1mm]standalone
                            usetikzlibrarypositioning
                            begindocument
                            sffamily
                            begintikzpicture
                            beginscope[local bounding box=a]
                            node[minimum width=2cm,line width=0.199mm,minimum height=3cm,draw=black] (main-a) R;
                            path (main-a.west) node[left] N (main-a.north) node[above] M;
                            endscope
                            beginscope[local bounding box=b2]
                            node[minimum width=2cm,line width=0.199mm,minimum height=1cm,draw=blue,below right=of main-a] (main-b2) ;
                            path (main-b2.east) node[right] K (main-b2.north) node[above] M;
                            endscope
                            beginscope[local bounding box=b1]
                            node[minimum width=1cm,line width=0.199mm,minimum height=3cm,draw=blue,below left=of main-a] (main-b1) ;
                            path (main-b1.west) node[left] N (main-b1.north) node[above] K;
                            endscope
                            draw[-stealth] (main-a.south) -- (b1.north east);
                            draw[-stealth] (main-a.south) -- (b2.north west);
                            endtikzpicture
                            enddocument






                            share|improve this answer








                            New contributor




                            naveganteX 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 answer



                            share|improve this answer






                            New contributor




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









                            answered 45 mins ago









                            naveganteXnaveganteX

                            465




                            465




                            New contributor




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





                            New contributor





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






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




















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









                                draft saved

                                draft discarded


















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












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











                                naveganteX 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%2f485078%2fproblem-drawing-boxes-with-arrows-in-tikz%23new-answer', 'question_page');

                                );

                                Post as a guest















                                Required, but never shown





















































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown

































                                Required, but never shown














                                Required, but never shown












                                Required, but never shown







                                Required, but never shown







                                Popular posts from this blog

                                کانن (شرکت) محتویات تاریخچه[ویرایش] بخشی از تولیدات موفق این شرکت[ویرایش] در رده APS-C[ویرایش] گزارش محیط زیست[ویرایش] رده‌بندی محصولات[ویرایش] منابع[ویرایش] پانویس[ویرایش] پیوند به بیرون[ویرایش] منوی ناوبریwww.canon.comموزه آنلاین دوربین‌های کانننمودار تاریخچه سهام کاننوبگاه رسمی شرکت کاننوووووIDC Worldwide Hardcopy 2013

                                Rest API with Magento using PHP with example. Planned maintenance scheduled April 17/18, 2019 at 00:00UTC (8:00pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?How to update product using magento client library for PHP?Oauth Error while extending Magento Rest APINot showing my custom api in wsdl(url) and web service list?Using Magento API(REST) via IXMLHTTPRequest COM ObjectHow to login in Magento website using REST APIREST api call for Guest userMagento API calling using HTML and javascriptUse API rest media management by storeView code (admin)Magento REST API Example ErrorsHow to log all rest api calls in magento2?How to update product using magento client library for PHP?

                                Magento 2 - Auto login with specific URL Planned maintenance scheduled April 23, 2019 at 23:30 UTC (7:30pm US/Eastern) Announcing the arrival of Valued Associate #679: Cesar Manara Unicorn Meta Zoo #1: Why another podcast?Customer can't login - Page refreshes but nothing happensCustom Login page redirectURL to login with redirect URL after completionCustomer login is case sensitiveLogin with phone number or email address - Magento 1.9Magento 2: Set Customer Account Confirmation StatusCustomer auto connect from URLHow to call customer login form in the custom module action magento 2?Change of customer login error message magento2Referrer URL in modal login form