title: Change figure size and figure format in matplotlib
body: <p>I  want to obtain fig1 exactly of 4 by 3 inch sized, and in tiff format correcting the program below:</p>
  <pre class="lang-py prettyprint-override"><code>import matplotlib.pyplot as plt
  
  list1 = [3,4,5,6,9,12]
  list2 = [8,12,14,15,17,20]
  
  plt.plot(list1, list2)
  plt.savefig('fig1.png', dpi = 300)
  plt.close()
  </code></pre>