title: Relationship between dpi and figure size
body: <p>
  I have created a figure using matplotlib but I have realised the plot axis and the drawn line gets zoomed out. 
  <a href="https://i.stack.imgur.com/Zncs9.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/Zncs9.jpg" alt="enter image description here"></a></p>
  
  <p>Reading this <a href="https://stackoverflow.com/questions/332289/how-do-you-change-the-size-of-figures-drawn-with-matplotlib/638443#638443">earlier discussion thread</a>, it explains how to set the figure size.
  </p>
  
  <p><code>fig, ax = plt.subplots()</code></p>
  
  <p><code>fig.set_size_inches(3, 1.5)</code></p>
  
  <p><code>plt.savefig(file.jpeg, edgecolor='black', dpi=400, facecolor='black', transparent=True)</code></p>
  
  <p>
  With the above code (other configurations removed for brevity), I do get a resulting image file with <code>1200 X 600</code> desired dimensions(should we say resolution too?) and desired file size.</p>
  
  <p>
  The projected image is scaled out in an unusual way, annotations for example are enlarged. While I can set the size of the labels on the axis, the figure doesn't look proportional with respect to the scale since the bottom and right spines are  large and so are the plotted lines.</p>
  
  <p>The question therefore is, what configurations are going wrong?</p>