将交互式窗口添加到PDF matplotlib

时间:2016-02-24 11:44:13

标签: pdf matplotlib

是否可以使用matplotlib创建交互式PDF?

Plot

PDF

生成3D散点图的随机代码

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
from matplotlib.backends.backend_pdf import PdfPages


fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
ax.plot([1,2,3,4,5],[7,4,6,2,8],[4,6,8,9,2],'*')


with PdfPages("SystemPrediction3D.pdf") as pdf:# saving Pdf
    pdf.savefig(fig)

plt.show()

0 个答案:

没有答案