Skip to content

Latest commit

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date

Repository files navigation

Python binding for Indel Motion

generate varlog data from python

importpyindelimportnumpyasnpx=np.linspace(-np.pi, np.pi, 1000)
doc=pyindel.VarlogDoc()
group1=doc.add_group("group1")
group1.add_channel("sin", np.sin(x))
group1.add_channel("cos", np.cos(x), unit='mm', color='#202020')
doc.save("lalelu.xlog")

load varlog data into python

importpyindelimportmatplotlib.pyplotaspltdoc=pyindel.load_xlog('myfile.xlog')
x_cmds=doc.group("X").channel("cmdS").datay_cmds=doc.group("Y").channel("cmdS").dataz_cmds=doc.group("Z").channel("cmdS").datafig=plt.figure()
ax=plt.axes(projection="3d")
ax.plot3D(x_cmds, y_cmds, z_cmds, 'gray')
plt.show()

About

No description, website, or topics provided.

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages