title: Python maplotlib sine curve with random.randn
body: <p>I am pretty new to Python and have following question:</p>
  
  <p>I generated numpy arrays with the following code:</p>
  
  <pre><code>X = np.random.randn(1000)*2
  Y = np.sin(x)
  </code></pre>
  
  <p>How can I obtain a visualization of above data which looks similar to:</p>
  
  <p><a href="https://i.stack.imgur.com/e8sJJ.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/e8sJJ.png" alt="enter image description here"></a></p>
  
  <p>Thank you guys for any help!</p>