RPi sends 12000 samples. Receiver receives the samples in  chunks of 10 and plots 4000 samples on one plot. After that the numpy array is emptied and the plot begins from 0. This procedure repeats 3 times. After sending the 12000 samples the receiver fires a timeout after 5 seconds of UDP inactivity and closes the socket.
4 changes committed: RPi sends 12000 samples. Receiver receives the samples in chunks of 10 and plots 4000 samples on one plot. After that the numpy array is emptied and the plot begins from 0. This procedure repeats 3 times. After sending the 12000 samples the receiver fires a timeout after 5 seconds of UDP inactivity and closes the socket.