📜  plt.figure resize - 任何代码示例

📅  最后修改于: 2022-03-11 14:57:52.432000             🧑  作者: Mango

代码示例1
import matplotlib.pyplot as plt
import numpy as np

f = plt.figure(figsize=(10,3))
ax = f.add_subplot(121)
ax2 = f.add_subplot(122)
x = np.linspace(0,4,1000)
ax.plot(x, np.sin(x))
ax2.plot(x, np.cos(x), 'r:')