bf and automatic plot show for 2 sec and then close and contiunue

This commit is contained in:
Till Raab 2023-10-20 11:31:38 +02:00
parent e1ce6c4d80
commit 68d810e693

View File

@ -1,3 +1,5 @@
import time
import numpy as np
import argparse
import torch
@ -123,7 +125,9 @@ def main(args):
(rise_size[id_idx] >= 10)], dtype=int)
ax.plot(times_v[rise_idx_oi], fish_freq[id_idx][rise_idx_oi], 'o', color='tab:red')
plt.show()
plt.show(block=False)
time.sleep(2)
plt.close()
if __name__ == '__main__':