Articles → Matplotlib → Savefig Function In Matplotlib
Savefig Function In Matplotlib
Purpose
Example
import matplotlib.pyplot as plt
fig = plt.figure()
fig, axes = plt.subplots(nrows = 2, ncols= 2) # a figure with a 2x2 grid of Axes
fig.savefig("test.jpg")
Output