How do I get this scope on top of my other lines?
Clash 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-pgf tikz-graphdrawing
add a comment |Â
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-pgf tikz-graphdrawing
Welcome to TeX.SX! Please always provide a full MWE that also comprises yourdocumentclass
etc.
â Jasper Habicht
Aug 6 at 17:19
add a comment |Â
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-pgf tikz-graphdrawing
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-pgf tikz-graphdrawing
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 yourdocumentclass
etc.
â Jasper Habicht
Aug 6 at 17:19
add a comment |Â
Welcome to TeX.SX! Please always provide a full MWE that also comprises yourdocumentclass
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
add a comment |Â
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:
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
add a comment |Â
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
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
add a comment |Â
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
add a comment |Â
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:
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
add a comment |Â
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:
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
add a comment |Â
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:
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:
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
add a comment |Â
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
add a comment |Â
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
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
add a comment |Â
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
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
add a comment |Â
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
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
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
add a comment |Â
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
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
answered Aug 6 at 21:28
Zarko
109k859147
109k859147
add a comment |Â
add a comment |Â
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Welcome to TeX.SX! Please always provide a full MWE that also comprises your
documentclass
etc.â Jasper Habicht
Aug 6 at 17:19