<human>:  Matplotlib - How to plot a high resolution graph?
<bot>: Here is some code to save matplotlib graph to image file `filename.png` at a resolution of `300 dpi`

plt.savefig('filename.png', dpi=300)

#Warning: this code generation is experimental. Please inspect the code for any bugs before executing.