title: How to plot tan(x) with pyplot and numpy
body: <p><strong>Code:</strong></p>
  
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  x = np.linspace(0, 10000)
  plt.plot(x, np.tan(x))
  plt.show()
  </code></pre>
  
  <p><strong>Expected result:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/uRtsr.png" rel="noreferrer"><img src="https://i.stack.imgur.com/uRtsr.png" alt="enter image description here"></a></p>
  
  <p><strong>The result I get:</strong></p>
  
  <p><a href="https://i.stack.imgur.com/064UL.png" rel="noreferrer"><img src="https://i.stack.imgur.com/064UL.png" alt="enter image description here"></a></p>