Overlay multiple boxes in tikz












2















Seriously, I have no idea where to start to draw this image. Especially, the overlaying boxes on top make me somehow clueless at this point...



I know, there are some amazing tikz-gurus in here, maybe could one please shed some light?



enter image description here



Thank you very much for all the helpful tips!



Cheers!
Martin










share|improve this question


















  • 1





    Section 69.3.2 Copy Shadows of the pgfmanual.

    – marmot
    5 hours ago
















2















Seriously, I have no idea where to start to draw this image. Especially, the overlaying boxes on top make me somehow clueless at this point...



I know, there are some amazing tikz-gurus in here, maybe could one please shed some light?



enter image description here



Thank you very much for all the helpful tips!



Cheers!
Martin










share|improve this question


















  • 1





    Section 69.3.2 Copy Shadows of the pgfmanual.

    – marmot
    5 hours ago














2












2








2








Seriously, I have no idea where to start to draw this image. Especially, the overlaying boxes on top make me somehow clueless at this point...



I know, there are some amazing tikz-gurus in here, maybe could one please shed some light?



enter image description here



Thank you very much for all the helpful tips!



Cheers!
Martin










share|improve this question














Seriously, I have no idea where to start to draw this image. Especially, the overlaying boxes on top make me somehow clueless at this point...



I know, there are some amazing tikz-gurus in here, maybe could one please shed some light?



enter image description here



Thank you very much for all the helpful tips!



Cheers!
Martin







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked 5 hours ago









StypStyp

20716




20716








  • 1





    Section 69.3.2 Copy Shadows of the pgfmanual.

    – marmot
    5 hours ago














  • 1





    Section 69.3.2 Copy Shadows of the pgfmanual.

    – marmot
    5 hours ago








1




1





Section 69.3.2 Copy Shadows of the pgfmanual.

– marmot
5 hours ago





Section 69.3.2 Copy Shadows of the pgfmanual.

– marmot
5 hours ago










1 Answer
1






active

oldest

votes


















5














Such things can be done with copy shadow, which supports up to two copies. If you want more than those, you could either write a new style for that (like triple shadow, say) or just copy the box with foreach. The first option has been worked out in this great answer. However, in the present case, in which these are simple squares, the second option is arguably easier to implement.



documentclass[tikz,border=3.14mm]{standalone}
usetikzlibrary{fit,positioning,backgrounds,decorations.pathreplacing}
begin{document}
definecolor{leftcol}{RGB}{68,98,96}
definecolor{rightcol}{RGB}{39,61,73}
begin{tikzpicture}[square/.style={rectangle,minimum width=1cm,minimum
height=1cm,draw=leftcol!80,thick,fill=white},font=sffamilybfseries]
node[square] (square1){};
foreach X [count=Y] in {2,3,4}
{node[anchor=north west,below right=2mm and 2mm of squareY.north west,square] (squareX){};}
node[square,below=1.5cm of square1] (square5){};
node[fit=(square1)(square4)](fit1){};
draw[decorate,decoration=brace,white,very thick] (fit1.north east) --
(fit1.south east) node[midway,right,align=left] (Train) {Train & Valitidate\
Models};
draw[decorate,decoration={brace},white,very thick] (square5.south east) --
(square5.south west) node[midway,below] (Test) {Test Score};
draw[thick,-latex,white] (Train) -- (Test.north east);
begin{scope}[on background layer]
node[fit=(square1) (Test) (Train),left color=leftcol,right color=rightcol,
inner sep=3mm]{};
end{scope}
end{tikzpicture}
end{document}


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%2f472800%2foverlay-multiple-boxes-in-tikz%23new-answer', 'question_page');
    }
    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    5














    Such things can be done with copy shadow, which supports up to two copies. If you want more than those, you could either write a new style for that (like triple shadow, say) or just copy the box with foreach. The first option has been worked out in this great answer. However, in the present case, in which these are simple squares, the second option is arguably easier to implement.



    documentclass[tikz,border=3.14mm]{standalone}
    usetikzlibrary{fit,positioning,backgrounds,decorations.pathreplacing}
    begin{document}
    definecolor{leftcol}{RGB}{68,98,96}
    definecolor{rightcol}{RGB}{39,61,73}
    begin{tikzpicture}[square/.style={rectangle,minimum width=1cm,minimum
    height=1cm,draw=leftcol!80,thick,fill=white},font=sffamilybfseries]
    node[square] (square1){};
    foreach X [count=Y] in {2,3,4}
    {node[anchor=north west,below right=2mm and 2mm of squareY.north west,square] (squareX){};}
    node[square,below=1.5cm of square1] (square5){};
    node[fit=(square1)(square4)](fit1){};
    draw[decorate,decoration=brace,white,very thick] (fit1.north east) --
    (fit1.south east) node[midway,right,align=left] (Train) {Train & Valitidate\
    Models};
    draw[decorate,decoration={brace},white,very thick] (square5.south east) --
    (square5.south west) node[midway,below] (Test) {Test Score};
    draw[thick,-latex,white] (Train) -- (Test.north east);
    begin{scope}[on background layer]
    node[fit=(square1) (Test) (Train),left color=leftcol,right color=rightcol,
    inner sep=3mm]{};
    end{scope}
    end{tikzpicture}
    end{document}


    enter image description here






    share|improve this answer






























      5














      Such things can be done with copy shadow, which supports up to two copies. If you want more than those, you could either write a new style for that (like triple shadow, say) or just copy the box with foreach. The first option has been worked out in this great answer. However, in the present case, in which these are simple squares, the second option is arguably easier to implement.



      documentclass[tikz,border=3.14mm]{standalone}
      usetikzlibrary{fit,positioning,backgrounds,decorations.pathreplacing}
      begin{document}
      definecolor{leftcol}{RGB}{68,98,96}
      definecolor{rightcol}{RGB}{39,61,73}
      begin{tikzpicture}[square/.style={rectangle,minimum width=1cm,minimum
      height=1cm,draw=leftcol!80,thick,fill=white},font=sffamilybfseries]
      node[square] (square1){};
      foreach X [count=Y] in {2,3,4}
      {node[anchor=north west,below right=2mm and 2mm of squareY.north west,square] (squareX){};}
      node[square,below=1.5cm of square1] (square5){};
      node[fit=(square1)(square4)](fit1){};
      draw[decorate,decoration=brace,white,very thick] (fit1.north east) --
      (fit1.south east) node[midway,right,align=left] (Train) {Train & Valitidate\
      Models};
      draw[decorate,decoration={brace},white,very thick] (square5.south east) --
      (square5.south west) node[midway,below] (Test) {Test Score};
      draw[thick,-latex,white] (Train) -- (Test.north east);
      begin{scope}[on background layer]
      node[fit=(square1) (Test) (Train),left color=leftcol,right color=rightcol,
      inner sep=3mm]{};
      end{scope}
      end{tikzpicture}
      end{document}


      enter image description here






      share|improve this answer




























        5












        5








        5







        Such things can be done with copy shadow, which supports up to two copies. If you want more than those, you could either write a new style for that (like triple shadow, say) or just copy the box with foreach. The first option has been worked out in this great answer. However, in the present case, in which these are simple squares, the second option is arguably easier to implement.



        documentclass[tikz,border=3.14mm]{standalone}
        usetikzlibrary{fit,positioning,backgrounds,decorations.pathreplacing}
        begin{document}
        definecolor{leftcol}{RGB}{68,98,96}
        definecolor{rightcol}{RGB}{39,61,73}
        begin{tikzpicture}[square/.style={rectangle,minimum width=1cm,minimum
        height=1cm,draw=leftcol!80,thick,fill=white},font=sffamilybfseries]
        node[square] (square1){};
        foreach X [count=Y] in {2,3,4}
        {node[anchor=north west,below right=2mm and 2mm of squareY.north west,square] (squareX){};}
        node[square,below=1.5cm of square1] (square5){};
        node[fit=(square1)(square4)](fit1){};
        draw[decorate,decoration=brace,white,very thick] (fit1.north east) --
        (fit1.south east) node[midway,right,align=left] (Train) {Train & Valitidate\
        Models};
        draw[decorate,decoration={brace},white,very thick] (square5.south east) --
        (square5.south west) node[midway,below] (Test) {Test Score};
        draw[thick,-latex,white] (Train) -- (Test.north east);
        begin{scope}[on background layer]
        node[fit=(square1) (Test) (Train),left color=leftcol,right color=rightcol,
        inner sep=3mm]{};
        end{scope}
        end{tikzpicture}
        end{document}


        enter image description here






        share|improve this answer















        Such things can be done with copy shadow, which supports up to two copies. If you want more than those, you could either write a new style for that (like triple shadow, say) or just copy the box with foreach. The first option has been worked out in this great answer. However, in the present case, in which these are simple squares, the second option is arguably easier to implement.



        documentclass[tikz,border=3.14mm]{standalone}
        usetikzlibrary{fit,positioning,backgrounds,decorations.pathreplacing}
        begin{document}
        definecolor{leftcol}{RGB}{68,98,96}
        definecolor{rightcol}{RGB}{39,61,73}
        begin{tikzpicture}[square/.style={rectangle,minimum width=1cm,minimum
        height=1cm,draw=leftcol!80,thick,fill=white},font=sffamilybfseries]
        node[square] (square1){};
        foreach X [count=Y] in {2,3,4}
        {node[anchor=north west,below right=2mm and 2mm of squareY.north west,square] (squareX){};}
        node[square,below=1.5cm of square1] (square5){};
        node[fit=(square1)(square4)](fit1){};
        draw[decorate,decoration=brace,white,very thick] (fit1.north east) --
        (fit1.south east) node[midway,right,align=left] (Train) {Train & Valitidate\
        Models};
        draw[decorate,decoration={brace},white,very thick] (square5.south east) --
        (square5.south west) node[midway,below] (Test) {Test Score};
        draw[thick,-latex,white] (Train) -- (Test.north east);
        begin{scope}[on background layer]
        node[fit=(square1) (Test) (Train),left color=leftcol,right color=rightcol,
        inner sep=3mm]{};
        end{scope}
        end{tikzpicture}
        end{document}


        enter image description here







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited 4 hours ago

























        answered 5 hours ago









        marmotmarmot

        96k4111212




        96k4111212






























            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%2f472800%2foverlay-multiple-boxes-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

            Costa Masnaga

            Fotorealismo

            Sidney Franklin