Improve yticks of boxplot in flat-field_pointer.py

This commit is contained in:
2024-04-26 04:10:41 +02:00
parent 25b3b30634
commit f1cafc1eb1

View File

@@ -75,15 +75,18 @@ for xy, otherXy in zip(xys, xys[1:]):
greatestDistance = distance
greatestDistances += [greatestDistance]
fig, ax = plt.subplots()
plt.title('Distance between a wall marker location and the next one')
plt.boxplot(greatestDistances)
ax.boxplot(greatestDistances)
ys = []
for percentile in [25, 50, 75]:
y = np.percentile(greatestDistances, percentile)
plt.axhline(y = y)
ys += [y]
ax.axhline(y = y)
#plt.yticks()
ax.set_yticks(list(ax.get_yticks())[1:-1] + ys)
plt.xticks([], [])
plt.show()
ax.set_xticks([], [])
fig.show()