How do I get this scope on top of my other lines?

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
2
down vote

favorite












Yo



begintikzpicture
draw (0,0) -- (0,3cm);
draw (0.5cm,0) -- (0.5cm,3cm);
draw (3cm,0) -- (3cm,3cm);
draw (3.5cm,0) -- (3.5cm,3cm);
draw (0,0) arc (0:180:-1.75cm);
draw (0.5cm,0) arc (0:180:-1.25cm);


draw [fill=blue,blue] (0,0) rectangle (0.5cm,1cm);
draw [fill=blue,blue] (3cm,0) rectangle (3.5cm,2.5cm);
draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

defRadius1.75cm
defradius1.25cm
beginscope[even odd rule]
clip circle[radius=Radius];
clip[rotate=0] (0,0) -- (0:Radius) arc (0:-180:Radius)--cycle;
fill[blue]
circle[radius=Radius]
circle[radius=radius]
;
endscope
endtikzpicture


For some reason, the scope isn't on top of my other lines although I have set them all up to start at (0,0).
Any suggestions on how I make this work?
Tikz-Drawing







share|improve this question





















  • Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
    – Jasper Habicht
    Aug 6 at 17:19














up vote
2
down vote

favorite












Yo



begintikzpicture
draw (0,0) -- (0,3cm);
draw (0.5cm,0) -- (0.5cm,3cm);
draw (3cm,0) -- (3cm,3cm);
draw (3.5cm,0) -- (3.5cm,3cm);
draw (0,0) arc (0:180:-1.75cm);
draw (0.5cm,0) arc (0:180:-1.25cm);


draw [fill=blue,blue] (0,0) rectangle (0.5cm,1cm);
draw [fill=blue,blue] (3cm,0) rectangle (3.5cm,2.5cm);
draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

defRadius1.75cm
defradius1.25cm
beginscope[even odd rule]
clip circle[radius=Radius];
clip[rotate=0] (0,0) -- (0:Radius) arc (0:-180:Radius)--cycle;
fill[blue]
circle[radius=Radius]
circle[radius=radius]
;
endscope
endtikzpicture


For some reason, the scope isn't on top of my other lines although I have set them all up to start at (0,0).
Any suggestions on how I make this work?
Tikz-Drawing







share|improve this question





















  • Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
    – Jasper Habicht
    Aug 6 at 17:19












up vote
2
down vote

favorite









up vote
2
down vote

favorite











Yo



begintikzpicture
draw (0,0) -- (0,3cm);
draw (0.5cm,0) -- (0.5cm,3cm);
draw (3cm,0) -- (3cm,3cm);
draw (3.5cm,0) -- (3.5cm,3cm);
draw (0,0) arc (0:180:-1.75cm);
draw (0.5cm,0) arc (0:180:-1.25cm);


draw [fill=blue,blue] (0,0) rectangle (0.5cm,1cm);
draw [fill=blue,blue] (3cm,0) rectangle (3.5cm,2.5cm);
draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

defRadius1.75cm
defradius1.25cm
beginscope[even odd rule]
clip circle[radius=Radius];
clip[rotate=0] (0,0) -- (0:Radius) arc (0:-180:Radius)--cycle;
fill[blue]
circle[radius=Radius]
circle[radius=radius]
;
endscope
endtikzpicture


For some reason, the scope isn't on top of my other lines although I have set them all up to start at (0,0).
Any suggestions on how I make this work?
Tikz-Drawing







share|improve this question













Yo



begintikzpicture
draw (0,0) -- (0,3cm);
draw (0.5cm,0) -- (0.5cm,3cm);
draw (3cm,0) -- (3cm,3cm);
draw (3.5cm,0) -- (3.5cm,3cm);
draw (0,0) arc (0:180:-1.75cm);
draw (0.5cm,0) arc (0:180:-1.25cm);


draw [fill=blue,blue] (0,0) rectangle (0.5cm,1cm);
draw [fill=blue,blue] (3cm,0) rectangle (3.5cm,2.5cm);
draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

defRadius1.75cm
defradius1.25cm
beginscope[even odd rule]
clip circle[radius=Radius];
clip[rotate=0] (0,0) -- (0:Radius) arc (0:-180:Radius)--cycle;
fill[blue]
circle[radius=Radius]
circle[radius=radius]
;
endscope
endtikzpicture


For some reason, the scope isn't on top of my other lines although I have set them all up to start at (0,0).
Any suggestions on how I make this work?
Tikz-Drawing









share|improve this question












share|improve this question




share|improve this question








edited Aug 6 at 17:14









Ruixi Zhang

1,359113




1,359113









asked Aug 6 at 17:08









tjaymiller

111




111











  • Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
    – Jasper Habicht
    Aug 6 at 17:19
















  • Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
    – Jasper Habicht
    Aug 6 at 17:19















Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
– Jasper Habicht
Aug 6 at 17:19




Welcome to TeX.SX! Please always provide a full MWE that also comprises your documentclass etc.
– Jasper Habicht
Aug 6 at 17:19










3 Answers
3






active

oldest

votes

















up vote
5
down vote













This is because you draw the first shape using arc and the second by drawing a circle. A circle is drawn around its center which you defined implicitly as (0,0), and hence the shift. You can shift the scope by 1.75cm to fit it to the other shapes.



documentclass[border=5pt,tikz]standalone
begindocument

begintikzpicture

fill[blue] (0,0) rectangle (0.5cm,1cm);
fill[blue] (3cm,0) rectangle (3.5cm,2.5cm);

defRadius1.75cm
defradius1.25cm
beginscope[xshift=1.75cm,even odd rule]
clip (0,0) -- (0:Radius) arc (0:-180:Radius) -- cycle;
fill[blue] circle[radius=Radius] circle[radius=radius];
endscope

draw (0,0) -- (0,3cm);
draw (0.5cm,0) -- (0.5cm,3cm);
draw (3cm,0) -- (3cm,3cm);
draw (3.5cm,0) -- (3.5cm,3cm);
draw (0,0) arc (0:180:-1.75cm);
draw (0.5cm,0) arc (0:180:-1.25cm);

draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

endtikzpicture

enddocument


Edit: I rearranged the shapes so that the blue shape is behind the lines. This way, the lines will be visible.



Here is the output:



enter image description here






share|improve this answer























  • I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
    – Diaa
    Aug 6 at 17:32






  • 1




    I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
    – Jasper Habicht
    Aug 6 at 17:49










  • I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
    – Diaa
    Aug 6 at 18:04

















up vote
5
down vote













This is not an answer but just a comment. You can do that much easier. (EDIT: fixed the water level on the left, sorry, did not pay enough attention.)



documentclass[border=3.14mm,tikz]standalone
begindocument
begintikzpicture
draw [double distance=0.5cm] (0.25,3) -- (0.25,0) arc(0:180:-1.5cm)
-- (3.25,3);
draw [blue,line width=0.5cm] (0.25,1) -- (0.25,0) arc(0:180:-1.5cm)
-- (3.25,2.5);
draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;
endtikzpicture
enddocument


enter image description here






share|improve this answer



















  • 1




    Neat and simple solution.
    – Diaa
    Aug 6 at 21:09






  • 1




    @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
    – marmot
    Aug 6 at 21:24

















up vote
4
down vote













slightly modified code of the interesting marmot's "comment" (+1). it exploit more possibilities of double path option . for exercise :-)



documentclass[tikz, margin=3mm]standalone

begindocument
begintikzpicture[DS/.style=double distance=5mm, semithick, double=#1]
draw [DS=white] (0,3) -- (0,0)
(3,2.5) -- (3,3);
draw [DS=blue!50] (0,0) arc(0:180:-1.5cm) -- (3,2.5);
%
draw[densely dashed] (0.25,0.0) -- (4.45,0.0)
(3.25,2.5) -- (4.45,2.5);
draw[<->] (4.35,0) -- node[right] $Delta h$ (4.35,2.5) ;
endtikzpicture
enddocument


enter image description here






share|improve this answer





















    Your Answer







    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "85"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    convertImagesToLinks: false,
    noModals: false,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    bindNavPrevention: true,
    postfix: "",
    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%2f444876%2fhow-do-i-get-this-scope-on-top-of-my-other-lines%23new-answer', 'question_page');

    );

    Post as a guest






























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes








    up vote
    5
    down vote













    This is because you draw the first shape using arc and the second by drawing a circle. A circle is drawn around its center which you defined implicitly as (0,0), and hence the shift. You can shift the scope by 1.75cm to fit it to the other shapes.



    documentclass[border=5pt,tikz]standalone
    begindocument

    begintikzpicture

    fill[blue] (0,0) rectangle (0.5cm,1cm);
    fill[blue] (3cm,0) rectangle (3.5cm,2.5cm);

    defRadius1.75cm
    defradius1.25cm
    beginscope[xshift=1.75cm,even odd rule]
    clip (0,0) -- (0:Radius) arc (0:-180:Radius) -- cycle;
    fill[blue] circle[radius=Radius] circle[radius=radius];
    endscope

    draw (0,0) -- (0,3cm);
    draw (0.5cm,0) -- (0.5cm,3cm);
    draw (3cm,0) -- (3cm,3cm);
    draw (3.5cm,0) -- (3.5cm,3cm);
    draw (0,0) arc (0:180:-1.75cm);
    draw (0.5cm,0) arc (0:180:-1.25cm);

    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

    endtikzpicture

    enddocument


    Edit: I rearranged the shapes so that the blue shape is behind the lines. This way, the lines will be visible.



    Here is the output:



    enter image description here






    share|improve this answer























    • I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
      – Diaa
      Aug 6 at 17:32






    • 1




      I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
      – Jasper Habicht
      Aug 6 at 17:49










    • I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
      – Diaa
      Aug 6 at 18:04














    up vote
    5
    down vote













    This is because you draw the first shape using arc and the second by drawing a circle. A circle is drawn around its center which you defined implicitly as (0,0), and hence the shift. You can shift the scope by 1.75cm to fit it to the other shapes.



    documentclass[border=5pt,tikz]standalone
    begindocument

    begintikzpicture

    fill[blue] (0,0) rectangle (0.5cm,1cm);
    fill[blue] (3cm,0) rectangle (3.5cm,2.5cm);

    defRadius1.75cm
    defradius1.25cm
    beginscope[xshift=1.75cm,even odd rule]
    clip (0,0) -- (0:Radius) arc (0:-180:Radius) -- cycle;
    fill[blue] circle[radius=Radius] circle[radius=radius];
    endscope

    draw (0,0) -- (0,3cm);
    draw (0.5cm,0) -- (0.5cm,3cm);
    draw (3cm,0) -- (3cm,3cm);
    draw (3.5cm,0) -- (3.5cm,3cm);
    draw (0,0) arc (0:180:-1.75cm);
    draw (0.5cm,0) arc (0:180:-1.25cm);

    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

    endtikzpicture

    enddocument


    Edit: I rearranged the shapes so that the blue shape is behind the lines. This way, the lines will be visible.



    Here is the output:



    enter image description here






    share|improve this answer























    • I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
      – Diaa
      Aug 6 at 17:32






    • 1




      I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
      – Jasper Habicht
      Aug 6 at 17:49










    • I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
      – Diaa
      Aug 6 at 18:04












    up vote
    5
    down vote










    up vote
    5
    down vote









    This is because you draw the first shape using arc and the second by drawing a circle. A circle is drawn around its center which you defined implicitly as (0,0), and hence the shift. You can shift the scope by 1.75cm to fit it to the other shapes.



    documentclass[border=5pt,tikz]standalone
    begindocument

    begintikzpicture

    fill[blue] (0,0) rectangle (0.5cm,1cm);
    fill[blue] (3cm,0) rectangle (3.5cm,2.5cm);

    defRadius1.75cm
    defradius1.25cm
    beginscope[xshift=1.75cm,even odd rule]
    clip (0,0) -- (0:Radius) arc (0:-180:Radius) -- cycle;
    fill[blue] circle[radius=Radius] circle[radius=radius];
    endscope

    draw (0,0) -- (0,3cm);
    draw (0.5cm,0) -- (0.5cm,3cm);
    draw (3cm,0) -- (3cm,3cm);
    draw (3.5cm,0) -- (3.5cm,3cm);
    draw (0,0) arc (0:180:-1.75cm);
    draw (0.5cm,0) arc (0:180:-1.25cm);

    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

    endtikzpicture

    enddocument


    Edit: I rearranged the shapes so that the blue shape is behind the lines. This way, the lines will be visible.



    Here is the output:



    enter image description here






    share|improve this answer















    This is because you draw the first shape using arc and the second by drawing a circle. A circle is drawn around its center which you defined implicitly as (0,0), and hence the shift. You can shift the scope by 1.75cm to fit it to the other shapes.



    documentclass[border=5pt,tikz]standalone
    begindocument

    begintikzpicture

    fill[blue] (0,0) rectangle (0.5cm,1cm);
    fill[blue] (3cm,0) rectangle (3.5cm,2.5cm);

    defRadius1.75cm
    defradius1.25cm
    beginscope[xshift=1.75cm,even odd rule]
    clip (0,0) -- (0:Radius) arc (0:-180:Radius) -- cycle;
    fill[blue] circle[radius=Radius] circle[radius=radius];
    endscope

    draw (0,0) -- (0,3cm);
    draw (0.5cm,0) -- (0.5cm,3cm);
    draw (3cm,0) -- (3cm,3cm);
    draw (3.5cm,0) -- (3.5cm,3cm);
    draw (0,0) arc (0:180:-1.75cm);
    draw (0.5cm,0) arc (0:180:-1.25cm);

    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;

    endtikzpicture

    enddocument


    Edit: I rearranged the shapes so that the blue shape is behind the lines. This way, the lines will be visible.



    Here is the output:



    enter image description here







    share|improve this answer















    share|improve this answer



    share|improve this answer








    edited Aug 6 at 17:43


























    answered Aug 6 at 17:17









    Jasper Habicht

    4,73111032




    4,73111032











    • I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
      – Diaa
      Aug 6 at 17:32






    • 1




      I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
      – Jasper Habicht
      Aug 6 at 17:49










    • I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
      – Diaa
      Aug 6 at 18:04
















    • I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
      – Diaa
      Aug 6 at 17:32






    • 1




      I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
      – Jasper Habicht
      Aug 6 at 17:49










    • I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
      – Diaa
      Aug 6 at 18:04















    I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
    – Diaa
    Aug 6 at 17:32




    I am sorry for asking this simple question, but could you refer me the section in the TikZ manual where I can understand what the scope environment does here in your code?
    – Diaa
    Aug 6 at 17:32




    1




    1




    I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
    – Jasper Habicht
    Aug 6 at 17:49




    I just used this approach because the the OP also used it. The scope is mainly used to make clipping possible (2.11 „Clipping a Path“ on page 35 of the current manual). If you only want to clip a certain part of your drawing you have to use such a scope. Everything in this scope will then be clipped, but the rest of the picture will not be affected by the clipping (see: tex.stackexchange.com/questions/330882/…).
    – Jasper Habicht
    Aug 6 at 17:49












    I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
    – Diaa
    Aug 6 at 18:04




    I highly appreciate your consideration to respond to my inquiry. I will certainly look at what you referred to. Thanks!
    – Diaa
    Aug 6 at 18:04










    up vote
    5
    down vote













    This is not an answer but just a comment. You can do that much easier. (EDIT: fixed the water level on the left, sorry, did not pay enough attention.)



    documentclass[border=3.14mm,tikz]standalone
    begindocument
    begintikzpicture
    draw [double distance=0.5cm] (0.25,3) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,3);
    draw [blue,line width=0.5cm] (0.25,1) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,2.5);
    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



















    • 1




      Neat and simple solution.
      – Diaa
      Aug 6 at 21:09






    • 1




      @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
      – marmot
      Aug 6 at 21:24














    up vote
    5
    down vote













    This is not an answer but just a comment. You can do that much easier. (EDIT: fixed the water level on the left, sorry, did not pay enough attention.)



    documentclass[border=3.14mm,tikz]standalone
    begindocument
    begintikzpicture
    draw [double distance=0.5cm] (0.25,3) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,3);
    draw [blue,line width=0.5cm] (0.25,1) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,2.5);
    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer



















    • 1




      Neat and simple solution.
      – Diaa
      Aug 6 at 21:09






    • 1




      @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
      – marmot
      Aug 6 at 21:24












    up vote
    5
    down vote










    up vote
    5
    down vote









    This is not an answer but just a comment. You can do that much easier. (EDIT: fixed the water level on the left, sorry, did not pay enough attention.)



    documentclass[border=3.14mm,tikz]standalone
    begindocument
    begintikzpicture
    draw [double distance=0.5cm] (0.25,3) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,3);
    draw [blue,line width=0.5cm] (0.25,1) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,2.5);
    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer















    This is not an answer but just a comment. You can do that much easier. (EDIT: fixed the water level on the left, sorry, did not pay enough attention.)



    documentclass[border=3.14mm,tikz]standalone
    begindocument
    begintikzpicture
    draw [double distance=0.5cm] (0.25,3) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,3);
    draw [blue,line width=0.5cm] (0.25,1) -- (0.25,0) arc(0:180:-1.5cm)
    -- (3.25,2.5);
    draw[dashed] (0.5cm,1cm) -- (4.5cm,1cm);
    draw[dashed] (3.5cm,2.5cm) -- (4.5cm,2.5cm);
    draw[<->] (4.5cm,1cm) -- (4.5cm,2.5cm) node[midway,right] $Delta h$;
    endtikzpicture
    enddocument


    enter image description here







    share|improve this answer















    share|improve this answer



    share|improve this answer








    edited Aug 6 at 21:23


























    answered Aug 6 at 18:55









    marmot

    48.7k34396




    48.7k34396







    • 1




      Neat and simple solution.
      – Diaa
      Aug 6 at 21:09






    • 1




      @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
      – marmot
      Aug 6 at 21:24












    • 1




      Neat and simple solution.
      – Diaa
      Aug 6 at 21:09






    • 1




      @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
      – marmot
      Aug 6 at 21:24







    1




    1




    Neat and simple solution.
    – Diaa
    Aug 6 at 21:09




    Neat and simple solution.
    – Diaa
    Aug 6 at 21:09




    1




    1




    @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
    – marmot
    Aug 6 at 21:24




    @Diaa Thanks for pinging me, this made me spot a(nother) bug, and thanks for your nice comment! ;-)
    – marmot
    Aug 6 at 21:24










    up vote
    4
    down vote













    slightly modified code of the interesting marmot's "comment" (+1). it exploit more possibilities of double path option . for exercise :-)



    documentclass[tikz, margin=3mm]standalone

    begindocument
    begintikzpicture[DS/.style=double distance=5mm, semithick, double=#1]
    draw [DS=white] (0,3) -- (0,0)
    (3,2.5) -- (3,3);
    draw [DS=blue!50] (0,0) arc(0:180:-1.5cm) -- (3,2.5);
    %
    draw[densely dashed] (0.25,0.0) -- (4.45,0.0)
    (3.25,2.5) -- (4.45,2.5);
    draw[<->] (4.35,0) -- node[right] $Delta h$ (4.35,2.5) ;
    endtikzpicture
    enddocument


    enter image description here






    share|improve this answer

























      up vote
      4
      down vote













      slightly modified code of the interesting marmot's "comment" (+1). it exploit more possibilities of double path option . for exercise :-)



      documentclass[tikz, margin=3mm]standalone

      begindocument
      begintikzpicture[DS/.style=double distance=5mm, semithick, double=#1]
      draw [DS=white] (0,3) -- (0,0)
      (3,2.5) -- (3,3);
      draw [DS=blue!50] (0,0) arc(0:180:-1.5cm) -- (3,2.5);
      %
      draw[densely dashed] (0.25,0.0) -- (4.45,0.0)
      (3.25,2.5) -- (4.45,2.5);
      draw[<->] (4.35,0) -- node[right] $Delta h$ (4.35,2.5) ;
      endtikzpicture
      enddocument


      enter image description here






      share|improve this answer























        up vote
        4
        down vote










        up vote
        4
        down vote









        slightly modified code of the interesting marmot's "comment" (+1). it exploit more possibilities of double path option . for exercise :-)



        documentclass[tikz, margin=3mm]standalone

        begindocument
        begintikzpicture[DS/.style=double distance=5mm, semithick, double=#1]
        draw [DS=white] (0,3) -- (0,0)
        (3,2.5) -- (3,3);
        draw [DS=blue!50] (0,0) arc(0:180:-1.5cm) -- (3,2.5);
        %
        draw[densely dashed] (0.25,0.0) -- (4.45,0.0)
        (3.25,2.5) -- (4.45,2.5);
        draw[<->] (4.35,0) -- node[right] $Delta h$ (4.35,2.5) ;
        endtikzpicture
        enddocument


        enter image description here






        share|improve this answer













        slightly modified code of the interesting marmot's "comment" (+1). it exploit more possibilities of double path option . for exercise :-)



        documentclass[tikz, margin=3mm]standalone

        begindocument
        begintikzpicture[DS/.style=double distance=5mm, semithick, double=#1]
        draw [DS=white] (0,3) -- (0,0)
        (3,2.5) -- (3,3);
        draw [DS=blue!50] (0,0) arc(0:180:-1.5cm) -- (3,2.5);
        %
        draw[densely dashed] (0.25,0.0) -- (4.45,0.0)
        (3.25,2.5) -- (4.45,2.5);
        draw[<->] (4.35,0) -- node[right] $Delta h$ (4.35,2.5) ;
        endtikzpicture
        enddocument


        enter image description here







        share|improve this answer













        share|improve this answer



        share|improve this answer











        answered Aug 6 at 21:28









        Zarko

        109k859147




        109k859147






















             

            draft saved


            draft discarded


























             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f444876%2fhow-do-i-get-this-scope-on-top-of-my-other-lines%23new-answer', 'question_page');

            );

            Post as a guest













































































            Popular posts from this blog

            How to check contact read email or not when send email to Individual?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay