title: Matplotlib padding between plot and axis
body: <p>I am trying to do a matplolib figure with some padding between the axis and the actual plot.</p>
  
  <p>Here is my example code :</p>
  
  <pre><code>import numpy as np
  import matplotlib.pyplot as plt
  
  fig, ax = plt.subplots(1)
  
  x = np.linspace(0, 1)
  y = np.sin(4 * np.pi * x) * np.exp(-5 * x)
  
  plt.plot(x, y, 'r')
  plt.grid(True)
  
  
  plt.show()
  </code></pre>
  
  <p>And here is what I am trying to get :</p>
  
  <p><a href="https://i.stack.imgur.com/Ie86D.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Ie86D.png" alt="plot with x and y shift"></a></p>