Articles → Matplotlib → Dpi Attribute In Savefig Function In Matplotlib
Dpi Attribute In Savefig Function In Matplotlib
DPI
Purpose
Example
import matplotlib.pyplot as plt
fig = plt.figure()
fig, axes = plt.subplots(nrows = 2, ncols= 2)
fig.savefig("test.jpg", dpi=800)
Output