Commit 0d3df54f authored by Olivier Lantsoght's avatar Olivier Lantsoght 🏁
Browse files

[FIX] Python interface: index of results start at 1

parent 183e9d32
......@@ -71,7 +71,7 @@ mbs_dirdyn.mbs_run_dirdyn(mbs_data) # Run the direct dynamic computation
if not mbs_dirdyn.mbs_like_MBsysC:
from matplotlib import pyplot as plt
plt.figure(1)
plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.q[:,0]) # Warning, index start at 0
plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.q[:,1])
#plt.figure(2)
#plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.outputs["Fext"][:])
plt.show()
......
......@@ -109,7 +109,7 @@ mbs_dirdyn.mbs_run_dirdyn(mbs_data) # Run the direct dynamic computation
if not mbs_dirdyn.mbs_like_MBsysC:
from matplotlib import pyplot as plt
plt.figure(1)
plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.q[:,0]) # Warning, index start at 0
plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.q[:,1])
plt.figure(2)
plt.plot(mbs_dirdyn.results.t, mbs_dirdyn.results.outputs["Fext"][:])
plt.show()
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment