0

I would draw more sine waves where wave parameter (top, bottom interval between two waves) depends from a value inserted on a \foreach (or similar) value.

Can someone give me example?

Renato

ok, maybe the cycle is too much. Ho can I Dra one single sine wave ?

RenatoP
  • 791
  • 3
    I guess you should first add a code with the foreach loop and then someone will for sure add the sine. –  Dec 09 '18 at 17:14
  • I still have no code! I have just an Idea... – RenatoP Dec 09 '18 at 17:26
  • 3
    Here is a way to loop over sine waves. \documentclass[tikz,border=3.14mm]{standalone} \begin{document} \begin{tikzpicture} \foreach \X in {1,2,3} {\draw plot[variable=\x,domain=0:360,smooth] ({\x/100},{0.5*\X*sin(\x)});} \end{tikzpicture} \end{document} My hope is that you can use this as a basis for a question. –  Dec 09 '18 at 17:45
  • 3
    The answers here show how to draw a sine wave: Axis with trigonometric labels in PGFPlots. – Peter Grill Dec 09 '18 at 17:55
  • because, I don't know how to do that – RenatoP Dec 09 '18 at 21:57
  • 1
    Just click on the check mark left of the answer that you find most useful. You can only accept one answer per question. If you want to loop over plots in pgfplots, as suggested by @PeterGrill, you probably need to use \pgfplotsinvokeforeach. –  Dec 09 '18 at 22:02
  • Hi marmot. I've finaly accepted all my answer. I would accept also the one you gave me. Is it possible also if it is a comment? – RenatoP Dec 11 '18 at 07:44

0 Answers0