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
Click to Enlarge