79429927

Date: 2025-02-11 12:21:21
Score: 0.5
Natty:
Report link

I had a look at the code again and found out, how to make it work. What made it work was putting the plt.pause in front of the code block below.
This does solve my problem, but I am not sure why.

plt.pause(1 / frequenz)

# Check if maximum length is reached
if (all(len(data) >= zeitdauer * frequenz for data in
        temperature_data.values()) or not plt.fignum_exists(fig.number)):
    print("Program stopped")
    client.close()
    return
Reasons:
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: Fff