title: How do you improve matplotlib image quality?
body: <p>I am using a python program to produce some data, plotting the data using matplotlib.pyplot and then displaying the figure in a latex file. </p>
  
  <p>I am currently saving the figure as a .png file but the image quality isn't great. I've tried changing the DPI in <code>matplotlib.pyplot.figure(dpi=200)</code> etc but this seems to make little difference. I've also tried using differnet image formats but they all look a little faded and not very sharp.</p>
  
  <p>Has anyone else had this problem? </p>
  
  <p>Any help would be much appreciated </p>