I have tried running the following code but get a blank output:
fig, ax = plt.subplots()
#if (min(integrated_x.to_numpy()) or min(integrated_y.to_numpy())) < -0.8:
# ax.set_facecolor("red")
#elif (max(integrated_x.to_numpy()) or max(integrated_y.to_numpy())) > 0.8:
# ax.set_facecolor("red")
#else:
# ax.set_facecolor("white")
ax.set_xlabel("X-coordinate (rad)")
ax.set_ylabel("Y-coordinate (rad)")
ax.set_title("X and Y Coordinates of the fly")
ax.set_facecolor("red")
ax.set_aspect("equal")
ax.set_xlim(-0.8, 0.8)
ax.set_ylim(-0.8, 0.8)
ax.plot(integrated_x.to_numpy(), integrated_y.to_numpy(), "b-")