I want to send a Matplotlib interactive 3D plot to non-python users so that they can rotate and zoom in/out the figure. For example, the code below generates a simple 3D bar graph but can't be read if Python is not installed.
I have tried compiling with PyInstaller and read pickle.dumb file (no figure displayed) , using mpld3 functions (get TypeError: Object of type ndarray is not JSON serializable), using the libscript module as suggested in previous thread (Saving interactive Matplotlib figures) without success.
''''
from mpl_toolkits.mplot3d import Axes3D
import matplotlib.pyplot as plt
fig = plt.figure()
ax1 = fig.add_subplot(111, projection='3d')
xpos = [1,2,3,4,5,6,7,8,9,10]
ypos = [2,3,4,5,1,6,2,1,7,2]
zpos = [0,0,0,0,0,0,0,0,0,0]
dx = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
dy = [1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0, 1.0]
dz = [1,2,3,4,5,6,7,8,9,10]
ax1.bar3d(xpos, ypos,zpos, dx, dy, dz, color = '#00ceaa')
plt.show()
''''