Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I am trying to recreate the image below in Latex. I have used the tikzpicture environment to plot the straight lines on an axis. However the curves are proving difficult. Does anyone have any ideas on what would be the best way to draw the curves.

enter image description here Thanks

share|improve this question
5  
Would be nice if you showed the code you already have, so people don't have to create the example from scratch. –  Torbjørn T. Feb 20 at 8:24
    
If you're interested in TikZ-based version, it definitely worth a look to the expanding waves decoration. –  Claudio Fiandrino Feb 20 at 8:30
    
It looks much easier to use vector graphics editor like Inkscape(inkscape.org/en). –  user46542 Feb 20 at 9:50

2 Answers 2

A suggestion:

\documentclass[tikz]{standalone}
\begin{document}
\begin{tikzpicture}
\pgfmathsetmacro\rayangle{45}
\foreach \x in {0.5,1,...,3} {
  \draw  (\x,0) -- (\x,4);
  \draw  (3,2) ++(\rayangle:\x) arc[start angle=\rayangle,delta angle=-2*\rayangle,radius=\x];  
  }
\draw [gray,ultra thick,xshift=0.5\pgflinewidth] (3,0) -- (3,1.8) (3,2.2) -- (3,4);
\end{tikzpicture}
\end{document}

enter image description here

share|improve this answer
1  
more compact perhaps ? \foreach \i in {1,...,5} {% \draw (3,2) ++(30:\i*0.5) arc[start angle=30,delta angle=-2*30,radius=\i*0.5]; \draw (\i*0.5,0) -- (\i*0.5,4); } –  Alain Matthes Feb 20 at 9:02

One approach could be to use the library decorations.pathreplacing from »PGF/TikZ« and draw a decorated path as expanding waves with specifications for angle and segment length.

\documentclass{standalone}
\usepackage{tikz}
\usetikzlibrary{decorations.pathreplacing}

\begin{document}
  \begin{tikzpicture}[
    decoration={
      expanding waves,
      angle=45,
      segment length=0.5cm
    }
  ]
    \foreach \x in {-3.5,-3  .0,...,-0.5}
      \draw (\x,-2) -- (\x,2);
    \draw [ultra thick] (0,-2) -- (0,-0.2) (0,0.2) -- (0,2);
    \draw[decorate] (0,0) -- (2.5,0);
  \end{tikzpicture}
\end{document}

enter image description here

share|improve this answer
    
beat me by few seconds. :) –  Harish Kumar Feb 20 at 8:58

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.