December 2018
Beginner to intermediate
682 pages
18h 1m
English
Resolution measures the details recorded in an image. It determines how much you can enlarge your image without losing details. An image with higher resolution retains high quality at larger dimensions but also has a bigger file size.
Depending on the purpose, you may want to output your figures at different resolutions. Resolution is measured as the number of color pixel dot per inch (dpi). You may adjust the resolution of a figure output by specifying the dpi parameter in the pyplot.savefig() function, for example, by:
plt.savefig('output.png',dpi=300)While a higher resolution delivers better image quality, it also means a larger file size and demands more computer resources. Here are some references for how high ...