How to set the desired size of a figure, please?
import matplotlib.pyplot as plt
fig, ax = plt.subplots()
plt.rcParams["figure.figsize"] = [10, 10]
x = [1, 2, 3]
y = x
plt.plot(x, y, zorder = -1, c = 'grey')
plt.savefig('b.pdf')
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…