📜  python将图形另存为pdf - Python代码示例

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

代码示例1
import matplotlib.pyplot as plt

f = plt.figure()
plt.plot(range(10), range(10), "o")
plt.show()

f.savefig("foo.pdf", bbox_inches='tight')