Show that drawing is cutoff with tikz











up vote
3
down vote

favorite












documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
begin{tikzpicture}
draw[black] (-1,-2) -- (-1,0);
draw[decorate, decoration = {snake, segment length = .5cm}] (-1.5,-2) -- (-0.5,-2);
end{tikzpicture}
end{document}


enter image description here



I would like to indicate that my drawing has been cutoff at a certain point by wavy lines. I don't know the exact term for that style and thus came up with the example above. Is there a more elegant way to do this? Maybe a package, custom arrow tip? Or do I just need to experiment with the pathmorphing?



Ideally the wavy line would be the top part of a white filled box with all other edges also white, so I can just move it over my original drawing.
Inspired by this answer:



documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{shapes}
begin{tikzpicture}
draw[black] (0,-2) -- (0,0);

node[tape, draw, tape bend height=4mm, tape bend top=out and in, tape bend bottom=none,fill=white,minimum width=4cm,minimum height=2cm] at (0,-2) {};


end{tikzpicture}
end{document}


enter image description here



end result should look something like this:



enter image description here










share|improve this question




















  • 1




    If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
    – current_user
    yesterday

















up vote
3
down vote

favorite












documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
begin{tikzpicture}
draw[black] (-1,-2) -- (-1,0);
draw[decorate, decoration = {snake, segment length = .5cm}] (-1.5,-2) -- (-0.5,-2);
end{tikzpicture}
end{document}


enter image description here



I would like to indicate that my drawing has been cutoff at a certain point by wavy lines. I don't know the exact term for that style and thus came up with the example above. Is there a more elegant way to do this? Maybe a package, custom arrow tip? Or do I just need to experiment with the pathmorphing?



Ideally the wavy line would be the top part of a white filled box with all other edges also white, so I can just move it over my original drawing.
Inspired by this answer:



documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{shapes}
begin{tikzpicture}
draw[black] (0,-2) -- (0,0);

node[tape, draw, tape bend height=4mm, tape bend top=out and in, tape bend bottom=none,fill=white,minimum width=4cm,minimum height=2cm] at (0,-2) {};


end{tikzpicture}
end{document}


enter image description here



end result should look something like this:



enter image description here










share|improve this question




















  • 1




    If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
    – current_user
    yesterday















up vote
3
down vote

favorite









up vote
3
down vote

favorite











documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
begin{tikzpicture}
draw[black] (-1,-2) -- (-1,0);
draw[decorate, decoration = {snake, segment length = .5cm}] (-1.5,-2) -- (-0.5,-2);
end{tikzpicture}
end{document}


enter image description here



I would like to indicate that my drawing has been cutoff at a certain point by wavy lines. I don't know the exact term for that style and thus came up with the example above. Is there a more elegant way to do this? Maybe a package, custom arrow tip? Or do I just need to experiment with the pathmorphing?



Ideally the wavy line would be the top part of a white filled box with all other edges also white, so I can just move it over my original drawing.
Inspired by this answer:



documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{shapes}
begin{tikzpicture}
draw[black] (0,-2) -- (0,0);

node[tape, draw, tape bend height=4mm, tape bend top=out and in, tape bend bottom=none,fill=white,minimum width=4cm,minimum height=2cm] at (0,-2) {};


end{tikzpicture}
end{document}


enter image description here



end result should look something like this:



enter image description here










share|improve this question















documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
begin{tikzpicture}
draw[black] (-1,-2) -- (-1,0);
draw[decorate, decoration = {snake, segment length = .5cm}] (-1.5,-2) -- (-0.5,-2);
end{tikzpicture}
end{document}


enter image description here



I would like to indicate that my drawing has been cutoff at a certain point by wavy lines. I don't know the exact term for that style and thus came up with the example above. Is there a more elegant way to do this? Maybe a package, custom arrow tip? Or do I just need to experiment with the pathmorphing?



Ideally the wavy line would be the top part of a white filled box with all other edges also white, so I can just move it over my original drawing.
Inspired by this answer:



documentclass{article}
usepackage{tikz}
begin{document}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{decorations.pathmorphing}
usetikzlibrary{shapes}
begin{tikzpicture}
draw[black] (0,-2) -- (0,0);

node[tape, draw, tape bend height=4mm, tape bend top=out and in, tape bend bottom=none,fill=white,minimum width=4cm,minimum height=2cm] at (0,-2) {};


end{tikzpicture}
end{document}


enter image description here



end result should look something like this:



enter image description here







tikz-pgf tikz-arrows tikz-path






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited yesterday

























asked yesterday









idkfa

31929




31929








  • 1




    If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
    – current_user
    yesterday
















  • 1




    If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
    – current_user
    yesterday










1




1




If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
– current_user
yesterday






If I got you right, you can use just the clip option; clip along the wavy line and then use the last x-coordinate and go straigt up. Then just cycle the rectangle and you get the desired output. Especially for the last picture you can use just the intersections library and make an intersection with the wavy line and draw from the intersection with relative coordinates just straight up.
– current_user
yesterday












1 Answer
1






active

oldest

votes

















up vote
1
down vote













Given @current_user input I was able to create the following:



documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
draw (0,0) circle (1);
draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
draw[black] (-1,-2) -- (-1,14);
end{tikzpicture}
end{document}


enter image description here



documentclass{article}
usepackage{tikz}
begin{document}
begin{tikzpicture}
pgfmathsetmacro{startx}{-2}
pgfmathsetmacro{endx}{6}
pgfmathsetmacro{starty}{0}
pgfmathsetmacro{endy}{14}


begin{scope}
clip foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} -- (endx+4,endy) -- (startx,endy) -- (startx,starty);
draw (0,0) circle (1);
draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
draw[black] (-1,-2) -- (-1,14);
end{scope}
draw foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} ;
end{tikzpicture}
end{document}


enter image description here



Defining in the clipping area the region I want to keep vs. the region to omit seemed a bit counter intuitive to me, but it works now.






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',
    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%2f461090%2fshow-that-drawing-is-cutoff-with-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








    up vote
    1
    down vote













    Given @current_user input I was able to create the following:



    documentclass{article}
    usepackage{tikz}
    begin{document}
    begin{tikzpicture}
    draw (0,0) circle (1);
    draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
    draw[black] (-1,-2) -- (-1,14);
    end{tikzpicture}
    end{document}


    enter image description here



    documentclass{article}
    usepackage{tikz}
    begin{document}
    begin{tikzpicture}
    pgfmathsetmacro{startx}{-2}
    pgfmathsetmacro{endx}{6}
    pgfmathsetmacro{starty}{0}
    pgfmathsetmacro{endy}{14}


    begin{scope}
    clip foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} -- (endx+4,endy) -- (startx,endy) -- (startx,starty);
    draw (0,0) circle (1);
    draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
    draw[black] (-1,-2) -- (-1,14);
    end{scope}
    draw foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} ;
    end{tikzpicture}
    end{document}


    enter image description here



    Defining in the clipping area the region I want to keep vs. the region to omit seemed a bit counter intuitive to me, but it works now.






    share|improve this answer



























      up vote
      1
      down vote













      Given @current_user input I was able to create the following:



      documentclass{article}
      usepackage{tikz}
      begin{document}
      begin{tikzpicture}
      draw (0,0) circle (1);
      draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
      draw[black] (-1,-2) -- (-1,14);
      end{tikzpicture}
      end{document}


      enter image description here



      documentclass{article}
      usepackage{tikz}
      begin{document}
      begin{tikzpicture}
      pgfmathsetmacro{startx}{-2}
      pgfmathsetmacro{endx}{6}
      pgfmathsetmacro{starty}{0}
      pgfmathsetmacro{endy}{14}


      begin{scope}
      clip foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} -- (endx+4,endy) -- (startx,endy) -- (startx,starty);
      draw (0,0) circle (1);
      draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
      draw[black] (-1,-2) -- (-1,14);
      end{scope}
      draw foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} ;
      end{tikzpicture}
      end{document}


      enter image description here



      Defining in the clipping area the region I want to keep vs. the region to omit seemed a bit counter intuitive to me, but it works now.






      share|improve this answer

























        up vote
        1
        down vote










        up vote
        1
        down vote









        Given @current_user input I was able to create the following:



        documentclass{article}
        usepackage{tikz}
        begin{document}
        begin{tikzpicture}
        draw (0,0) circle (1);
        draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
        draw[black] (-1,-2) -- (-1,14);
        end{tikzpicture}
        end{document}


        enter image description here



        documentclass{article}
        usepackage{tikz}
        begin{document}
        begin{tikzpicture}
        pgfmathsetmacro{startx}{-2}
        pgfmathsetmacro{endx}{6}
        pgfmathsetmacro{starty}{0}
        pgfmathsetmacro{endy}{14}


        begin{scope}
        clip foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} -- (endx+4,endy) -- (startx,endy) -- (startx,starty);
        draw (0,0) circle (1);
        draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
        draw[black] (-1,-2) -- (-1,14);
        end{scope}
        draw foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} ;
        end{tikzpicture}
        end{document}


        enter image description here



        Defining in the clipping area the region I want to keep vs. the region to omit seemed a bit counter intuitive to me, but it works now.






        share|improve this answer














        Given @current_user input I was able to create the following:



        documentclass{article}
        usepackage{tikz}
        begin{document}
        begin{tikzpicture}
        draw (0,0) circle (1);
        draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
        draw[black] (-1,-2) -- (-1,14);
        end{tikzpicture}
        end{document}


        enter image description here



        documentclass{article}
        usepackage{tikz}
        begin{document}
        begin{tikzpicture}
        pgfmathsetmacro{startx}{-2}
        pgfmathsetmacro{endx}{6}
        pgfmathsetmacro{starty}{0}
        pgfmathsetmacro{endy}{14}


        begin{scope}
        clip foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} -- (endx+4,endy) -- (startx,endy) -- (startx,starty);
        draw (0,0) circle (1);
        draw (-1,-3) -- (6,-3) -- (2.5,8) -- cycle;
        draw[black] (-1,-2) -- (-1,14);
        end{scope}
        draw foreach x in {startx,2,...,endx} { (x,starty) to [bend left=25] (x+2,starty) to [bend right=25] (x+4,starty)} ;
        end{tikzpicture}
        end{document}


        enter image description here



        Defining in the clipping area the region I want to keep vs. the region to omit seemed a bit counter intuitive to me, but it works now.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        idkfa

        31929




        31929






























             

            draft saved


            draft discarded



















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f461090%2fshow-that-drawing-is-cutoff-with-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

            Accessing regular linux commands in Huawei's Dopra Linux

            Can't connect RFCOMM socket: Host is down

            Kernel panic - not syncing: Fatal Exception in Interrupt