|
|
@@ -19,13 +19,13 @@ plt.subplots_adjust(left=0.07, bottom=0.07, right=0.89, top=0.89, wspace=0.2, hs |
|
|
|
# Set Axis |
|
|
|
ax1.set_xlim([-0.02*mm, 0.52*mm]) |
|
|
|
ax1.set_ylim([-0.02*mm, 0.52*mm]) |
|
|
|
ax1.set_xticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
ax1.set_yticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
#ax1.set_xticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
#ax1.set_yticks(np.arange(0.0*mm, 0.55*mm, 0.05*mm)) |
|
|
|
ax1.set_xlabel('X-Position of object [mm]', fontdict=font) |
|
|
|
ax1.set_ylabel('Y-Position of object [mm]', fontdict=font) |
|
|
|
ax1.grid(alpha=0.6) |
|
|
|
for label in ax1.xaxis.get_ticklabels(): |
|
|
|
label.set_rotation(90) |
|
|
|
#for label in ax1.xaxis.get_ticklabels(): |
|
|
|
# label.set_rotation(90) |
|
|
|
|
|
|
|
ax2.set_ylim([0.1*mm, 0.6*mm]) |
|
|
|
ax2.set_xlim([0.0*mm, 0.2*mm]) |
|
|
@@ -153,7 +153,7 @@ def plot_art(recording_number): |
|
|
|
|
|
|
|
pos_counter += 1 |
|
|
|
|
|
|
|
ax1.plot(art_info[:, 1], art_info[:, 2], color="Gold", label="ART System", linewidth=5, marker="x") |
|
|
|
ax1.plot(art_info[:, 1], art_info[:, 2], color="green", label="ART System", linewidth=1) |
|
|
|
|
|
|
|
print("x=", art_info[:, 1]) |
|
|
|
print("y=", art_info[:, 2]) |
|
|
@@ -165,10 +165,11 @@ plotting = Plotting() |
|
|
|
|
|
|
|
|
|
|
|
# Decide what scaling_factors and Recording |
|
|
|
scale_factors = np.arange(0.001, 0.0035, 0.0005) |
|
|
|
localization.k_nearest = 5 |
|
|
|
#scale_factors = np.arange(0.001, 0.0035, 0.0005) |
|
|
|
scale_factors = [1] |
|
|
|
localization.k_nearest = 15 |
|
|
|
|
|
|
|
Recording = 15 # which ART Recording to pick |
|
|
|
Recording = 5 # which ART Recording to pick |
|
|
|
|
|
|
|
|
|
|
|
for sf in scale_factors: |
|
|
@@ -185,8 +186,8 @@ for sf in scale_factors: |
|
|
|
positions = positions * mm # convert from m to mm |
|
|
|
|
|
|
|
# Plot IndLoc Positions |
|
|
|
ax1.plot(positions[:, 0], positions[:, 1], label="sf = " + str(sf), linewidth=2) |
|
|
|
ax2.plot(positions[:, 2], positions[:, 1], label="sf = " + str(sf), linewidth=2) |
|
|
|
ax1.plot(positions[:, 0], positions[:, 1], label="sf = " + str(sf), linewidth=1) |
|
|
|
ax2.plot(positions[:, 2], positions[:, 1], label="sf = " + str(sf), linewidth=1) |
|
|
|
|
|
|
|
|
|
|
|
plot_art(Recording) |