title: How to rotate a function by a desired angle?
body: <p>How to rotate a function by the desired angle (for instance, 30 degrees)?</p>
  <pre><code>import matplotlib.pyplot as plt
  import numpy as np
  from numpy import exp, sin
  
  def g(y):
      return exp(-y)*sin(4*y)
  
  y = np.linspace(0, 1.8, 501)
  values = g(y)
  
  fig, ax = plt.subplots(figsize=(5,5))
  
  plt.plot(y, values)
  plt.show()
  </code></pre>