I\'ve used matplotlib for plotting some experimental results (discussed it in here: Looping over files and plotting. However, saving the picture by clicking right to the ima
You can use savefig() to export to an image file:
plt.savefig('filename.png')
In addition, you can specify the dpi argument to some scalar value, for example:
dpi
plt.savefig('filename.png', dpi=300)