23 lines
552 B
Python
Executable File
23 lines
552 B
Python
Executable File
import pandas as pd
|
|
import matplotlib.pyplot as plt
|
|
from mpl_toolkits.mplot3d import Axes3D
|
|
|
|
# Daten laden
|
|
df = pd.read_csv('3d_flugbahnen.csv', sep=';')
|
|
|
|
fig = plt.figure(figsize=(10, 7))
|
|
ax = fig.add_subplot(111, projection='3d')
|
|
|
|
# Jeden Schuss einzeln plotten
|
|
for schuss_id in df['SchussID'].unique():
|
|
daten = df[df['SchussID'] == schuss_id]
|
|
ax.plot(daten['X'], daten['Z'], daten['Y'], alpha=0.6)
|
|
|
|
ax.set_xlabel('Distanz (X)')
|
|
ax.set_ylabel('Seitlich (Z)')
|
|
ax.set_zlabel('Höhe (Y)')
|
|
ax.set_title('3D Flugbahnen mit Streuung')
|
|
|
|
plt.show()
|
|
|