title: Sine ploting python
body: <p>How to get one graph which consist of two different sinusoidal waves? I wrote this code but it makes two separate waves.. </p>
  
  <pre><code>Fs = 1000
  f = 2
  sample = 1000
  sample_rate= 0.1
  x = np.arange(sample)
  noise = 0.0003*np.asarray(random.sample(range(0,1000),sample))
  y = np.sin(2 * np.pi * f * x / Fs)+noise
  f1 = 10
  x1 = np.arange(sample)
  y1 = np.sin(2 * np.pi * f1 * x / Fs)+noise
  
  plt.plot(x, y, x1, y1)
  plt.xlabel('Time(s)')
  plt.ylabel('Amplitude(V)')
  plt.show()
  </code></pre>
  
  <p>I got this </p>
  
  <p><img src="https://i.stack.imgur.com/02Hrx.png" alt="enter image description here"></p>
  
  <p>but I need to get this one </p>
  
  <p><img src="https://i.stack.imgur.com/NoNav.png" alt="enter image description here"></p>