This is my code:
Code: Select all
Code, edit and compile here:
\begin{figure}[h!]\begin{center}\begin{tikzpicture} [>=latex]%\draw[->] (-4.0 cm, 0.0 cm) -- (10.0 cm, 0.0 cm) node[below]{$\omega$} ;%\draw[->] (0.0 cm, 0.0 cm) -- (0.0 cm, 3.5 cm) node[right]{$S(\omega)$};\draw[-, thin, dashed,rounded corners=0.14cm, name path=S](0.00cm, 3.0cm) --(0.25cm, 3.0cm) --(0.50cm, 2.0cm) --(1.00cm, 1.0cm) --(1.25cm, 0.8cm) --(1.50cm, 0.5cm) --(1.75cm, 0.4cm) --(2.00cm, 0.4cm) --(2.25cm, 0.3cm) --(2.50cm, 0.3cm);\path [name path=v] ( 0, 0) -- ( 0, 5);\draw [->, name intersections={of=v and S, by=y}, thick] (0, 0cm) -- (y);\path [name path=v1] ( 0.25, 0) -- ( 0.25, 5);\draw [->, name intersections={of=v1 and S, by=X}, thick] (0.25, 0cm) -- (X);\path [name path=v2] ( 0.5, 0) -- ( 0.5, 5);\draw [->, name intersections={of=v2 and S, by=X}, thick] (0.5, 0cm) -- (X);\end{tikzpicture}\end{center}\end{figure}