I am trying to create this diagram,
as I am not familiar with tikzpicture, but after going through tutorials, i come up with this:
and the code is:
\usepackage{tikz}
\usepackage{pgf}
\usepackage{pgfplots}
\usetikzlibrary{positioning,shapes,calc, decorations.pathreplacing, arrows, decorations.pathmorphing, backgrounds, fit, shapes.symbols, decorations.text,automata}
\begin{document}
\begin{tikzpicture} %[>=latex,shorten >=2pt,shorten <=2pt,shape
aspect=1] %\node (A) [cylinder, shape border rotate=90, draw,minimum
%height=4cm,minimum width=2cm] %{A};
%\draw (0,0) ellipse (1.25 and 0.5);); \fill [white,opacity=0.5]
(-1.25,0) -- (-1.25,-3.5) arc (180:360:1.25 and 0.5) -- (1.25,0) arc
(0:180:1.25 and -0.5); \draw (-1.25,0) -- (-1.25,-3.5); \draw
(-1.25,-3.5) arc (180:360:1.25 and 0.5); %\draw [dashed] (-1.25,-3.5)
arc (180:360:1.25 and -0.5); \draw (1.25,-3.5) -- (1.25,0);
\draw (-0.3,-4) -- (-0.3,-4.5); \draw (0.3,-4) -- (0.3,-4.5);
\draw[dashed] (-1.2,-1.5) -- (1.2,-1.5) node [midway,
above,fill=white] {$x_1$}; \draw[dashed] (-1.2,-3.3) -- (1.2,-3.3)
node [midway, above,fill=white] {$r_1$};
\qquad
%[>=latex,shorten >=2pt,shorten <=2pt,shape aspect=1] %\node (A)
[cylinder, shape border rotate=90, draw,minimum %height=4cm,minimum
width=2cm] %{A};
%\draw (0,0) ellipse (1.25 and 0.5); \draw (3.25,0) -- (3.25,-3.5);
\draw (3.25,-3.5) arc (180:360:1.25 and 0.5); %\draw [dashed]
(-1.25,-3.5) arc (180:360:1.25 and -0.5); \draw (5.75,-3.5) --
(5.75,0); \fill [white,opacity=0.5] (3.25,0) -- (3.25,-3.5) arc
(180:360:1.25 and 0.5) -- (1.25,0) arc (0:180:1.25 and -0.5);
\draw (4.2,-4) -- (4.2,-4.5); \draw (4.8,-4) -- (4.8,-4.5);
\draw[dashed] (2.9,-1.5) -- (5.7,-1.5) node [midway, above,fill=white]
{$x_2$}; \draw[dashed] (2.9,-3.3) -- (5.7,-3.3) node [midway,
above,fill=white] {$r_2$};
\end{tikzpicture}
\end{document}
I am still alot far, but it would be great, if someone can help me creating this diagram. Thank you.


