title: Django save image in folder
body: <p>I´ve got a piece of code that creates an image using matplotlib in Django and saves it to the root directory. I need to change the folder where matplotlib saves the image to /static/img folder.</p>
  
  <pre><code>    if (len(funcion) == 2):
          plotter = plot_regions([
              [(lambda x: (matrizRestricciones[0][2]-matrizRestricciones[0]
              [0]*x)/matrizRestricciones[0][1],True),
              (lambda x: (matrizRestricciones[1][2]-matrizRestricciones[1]
              [0]*x)/matrizRestricciones[1][1],True)]], xlim=(0, 10), ylim=(0,10))
          plt.grid()
          plt.savefig("/static/img/imagen.png")
          plt.close()
  </code></pre>
  
  <p>Any idea how to save them there?</p>
  
  <p>Thanks in advance.</p>