Setting the figure resolution

Depending on the format, location, and purpose of display, each figure may require a different scale of resolution. Generally, large printed materials, such as posters, would require higher resolution. We can set the resolution by specifying the dot per inch (DPI) value, like this for example:

plt.savefig(dpi=300)

For a 8x12 squared inches figure and output with 300 DPI, there will be (8x300)x(12x300) = 2400x3600 pixels in the image.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.16.152