Skip to content
Snippets Groups Projects
Commit ec33c384 authored by U.Mattschas's avatar U.Mattschas
Browse files

Update analysis.py

parent 9e8012a5
No related branches found
No related tags found
No related merge requests found
Pipeline #4815 passed
...@@ -251,12 +251,17 @@ class Analysis: ...@@ -251,12 +251,17 @@ class Analysis:
x_eom = np.array(self.xEOM([self.results["vx"][0]], times)) x_eom = np.array(self.xEOM([self.results["vx"][0]], times))
y_eom = np.array(self.yEOM([self.results["w"][0], self.results["vy"][0], self.results["vz"][0]], times), dtype=pd.Series) y_eom = np.array(self.yEOM([self.results["w"][0], self.results["vy"][0], self.results["vz"][0]], times), dtype=pd.Series)
z_eom = np.array(self.zEOM([self.results["w"][0], self.results["vy"][0], self.results["vz"][0]], times), dtype=pd.Series) z_eom = np.array(self.zEOM([self.results["w"][0], self.results["vy"][0], self.results["vz"][0]], times), dtype=pd.Series)
spaces = np.zeros(7)
print(spaces)
fig = plt.figure() fig = plt.figure()
# Make a 3D plot # Make a 3D plot
ax1 = fig.add_subplot(1, 2, 1, projection="3d") ax1 = fig.add_subplot(1, 2, 1, projection="3d")
ax1.plot(x_eom, y_eom, z_eom) ax1.plot(x_eom, y_eom, z_eom)
ax1.plot(self.xPoints["Mean"], self.yPoints["Mean"], 'o')
ax1.plot(self.xPoints["Mean"], spaces, self.zPoints["Mean"], 'o')
ax1.plot(spaces , self.yPoints["Mean"], self.zPoints["Mean"], 'o')
ax1.set_xlabel('x') ax1.set_xlabel('x')
ax1.set_ylabel('y') ax1.set_ylabel('y')
ax1.set_zlabel('z') ax1.set_zlabel('z')
...@@ -291,5 +296,4 @@ class Analysis: ...@@ -291,5 +296,4 @@ class Analysis:
plt.subplots_adjust(left=0, right=0.99) plt.subplots_adjust(left=0, right=0.99)
fig.tight_layout() fig.tight_layout()
plt.savefig('3D.png', format='png') plt.savefig('3D.png', format='png')
\ No newline at end of file
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment