i have this python code that show 3d lines in matplotlib figure.
i used plt.show()
to show figure.
but i want to show figure inside form that created by 'pyQt'.
the form include "Widget" and "pushButton" , i want to show 3d figure inside widget when i click on the button. how can i do that ?
code :
fig = plt.figure()
ax = fig.add_subplot(111, projection='3d')
x, y, z = [1, 2, 3, 4, 5, 6, 7, 3, 2, 1, 4], [6, 5, 3, 2, 1, 2, 4, 5, 6, 100, 6], [6, 5, 3, 2, 5, 5, 7, 8, 6, 3, 1]
ax.plot_wireframe(x, y, z)
plt.show()
and this is the form picture : Form