是否可以使用matplotlib创建交互式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()