diff --git a/code/event_time_correlations.py b/code/event_time_correlations.py index a1f9d2e..1227521 100644 --- a/code/event_time_correlations.py +++ b/code/event_time_correlations.py @@ -577,6 +577,7 @@ def main(base_path): def event_time_plot_with_agonistic_dur(conv_t_numpy, centered_communication, chase_dur_dist, centered_raster_times, jack_pct, max_dt, title='', chase_on_centered=True): fig = plt.figure(figsize=(20 / 2.54, 12 / 2.54)) + # fig = plt.figure(figsize=(14 / 2.54, 8 / 2.54)) gs = gridspec.GridSpec(1, 1, left=0.1, bottom=0.125 , right=0.9, top=0.95) ax = fig.add_subplot(gs[0, 0]) perm_p1, perm_p50, perm_p99, jk_p1, jk_p50, jk_p99, event_counts = centered_communication @@ -637,7 +638,7 @@ def event_time_plot_with_agonistic_dur(conv_t_numpy, centered_communication, cha save_str = title.replace(' ', '_').replace('{', '').replace('}', '').replace('$', '') if not save_path.exists(): save_path.mkdir(parents=True, exist_ok=True) - plt.savefig(save_path / f'{save_str}.png', dpi=300) + plt.savefig(save_path / f'xx_{save_str}.png', dpi=300) plt.close() diff --git a/code/event_videos.py b/code/event_videos.py index 498af54..051a5ba 100644 --- a/code/event_videos.py +++ b/code/event_videos.py @@ -32,7 +32,7 @@ def main(folder, dt): lose_id = meta.loc[filename, 'Lose_ID'] rise_bboxes = pd.read_csv(pathlib.Path(folder) / "risedetector_bboxes.csv", sep=',') chirp_bboxes = pd.read_csv(pathlib.Path(folder) / "chirpdetector_bboxes.csv", sep=',') - rise_times = rise_bboxes['t0'][rise_bboxes['id'] == lose_id].to_numpy() + rise_times = rise_bboxes['event_time'][rise_bboxes['id'] == lose_id].to_numpy() chirp_times = chirp_bboxes['chirp_times'][(chirp_bboxes['assigned_track'] == lose_id)].to_numpy() # ToDo: rise and chipt times to times idxs!!! diff --git a/code/figures/event_time_corr/chirp_lose_on_chase_off.png b/code/figures/event_time_corr/chirp_lose_on_chase_off.png index 108ebf0..54f38de 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_chase_off.png and b/code/figures/event_time_corr/chirp_lose_on_chase_off.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_chase_off_by_sexes.png b/code/figures/event_time_corr/chirp_lose_on_chase_off_by_sexes.png index bb8dd0e..3b90f50 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_chase_off_by_sexes.png and b/code/figures/event_time_corr/chirp_lose_on_chase_off_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_chase_on.png b/code/figures/event_time_corr/chirp_lose_on_chase_on.png index c29d7fb..b7685e7 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_chase_on.png and b/code/figures/event_time_corr/chirp_lose_on_chase_on.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_chase_on_by_sexes.png b/code/figures/event_time_corr/chirp_lose_on_chase_on_by_sexes.png index 96eb303..cb90eb1 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_chase_on_by_sexes.png and b/code/figures/event_time_corr/chirp_lose_on_chase_on_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_contact.png b/code/figures/event_time_corr/chirp_lose_on_contact.png index 384f072..415b61c 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_contact.png and b/code/figures/event_time_corr/chirp_lose_on_contact.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_contact_by_sexes.png b/code/figures/event_time_corr/chirp_lose_on_contact_by_sexes.png index 44653fa..944d9a5 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_contact_by_sexes.png and b/code/figures/event_time_corr/chirp_lose_on_contact_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_rise_win.png b/code/figures/event_time_corr/chirp_lose_on_rise_win.png index b3746aa..2dd41fa 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_rise_win.png and b/code/figures/event_time_corr/chirp_lose_on_rise_win.png differ diff --git a/code/figures/event_time_corr/chirp_lose_on_rise_win_by_sexes.png b/code/figures/event_time_corr/chirp_lose_on_rise_win_by_sexes.png index 15ab601..38c9c6d 100644 Binary files a/code/figures/event_time_corr/chirp_lose_on_rise_win_by_sexes.png and b/code/figures/event_time_corr/chirp_lose_on_rise_win_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_chase_off.png b/code/figures/event_time_corr/chirp_win_on_chase_off.png index 1ffb10d..16dd906 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_chase_off.png and b/code/figures/event_time_corr/chirp_win_on_chase_off.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_chase_off_by_sexes.png b/code/figures/event_time_corr/chirp_win_on_chase_off_by_sexes.png index ec7d841..5b708cb 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_chase_off_by_sexes.png and b/code/figures/event_time_corr/chirp_win_on_chase_off_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_chase_on.png b/code/figures/event_time_corr/chirp_win_on_chase_on.png index eeed55a..fcd33b9 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_chase_on.png and b/code/figures/event_time_corr/chirp_win_on_chase_on.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_chase_on_by_sexes.png b/code/figures/event_time_corr/chirp_win_on_chase_on_by_sexes.png index ed143c7..3fadc9e 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_chase_on_by_sexes.png and b/code/figures/event_time_corr/chirp_win_on_chase_on_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_contact.png b/code/figures/event_time_corr/chirp_win_on_contact.png index e54efa0..3118a5a 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_contact.png and b/code/figures/event_time_corr/chirp_win_on_contact.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_contact_by_sexes.png b/code/figures/event_time_corr/chirp_win_on_contact_by_sexes.png index 26c6608..0adf1b7 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_contact_by_sexes.png and b/code/figures/event_time_corr/chirp_win_on_contact_by_sexes.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_rise_lose.png b/code/figures/event_time_corr/chirp_win_on_rise_lose.png index c527f45..ecfcde1 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_rise_lose.png and b/code/figures/event_time_corr/chirp_win_on_rise_lose.png differ diff --git a/code/figures/event_time_corr/chirp_win_on_rise_lose_by_sexes.png b/code/figures/event_time_corr/chirp_win_on_rise_lose_by_sexes.png index f3d0777..2ab430b 100644 Binary files a/code/figures/event_time_corr/chirp_win_on_rise_lose_by_sexes.png and b/code/figures/event_time_corr/chirp_win_on_rise_lose_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chase_off.png b/code/figures/event_time_corr/rise_lose_on_chase_off.png index f38d0c7..173dbf0 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chase_off.png and b/code/figures/event_time_corr/rise_lose_on_chase_off.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chase_off_by_sexes.png b/code/figures/event_time_corr/rise_lose_on_chase_off_by_sexes.png index dc7eccc..2ac5e6b 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chase_off_by_sexes.png and b/code/figures/event_time_corr/rise_lose_on_chase_off_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chase_on.png b/code/figures/event_time_corr/rise_lose_on_chase_on.png index 426d793..4e6958d 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chase_on.png and b/code/figures/event_time_corr/rise_lose_on_chase_on.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chase_on_by_sexes.png b/code/figures/event_time_corr/rise_lose_on_chase_on_by_sexes.png index be1ae8e..6c4cbe5 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chase_on_by_sexes.png and b/code/figures/event_time_corr/rise_lose_on_chase_on_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chirp_win.png b/code/figures/event_time_corr/rise_lose_on_chirp_win.png index 0aa29d1..70277c4 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chirp_win.png and b/code/figures/event_time_corr/rise_lose_on_chirp_win.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_chirp_win_by_sexes.png b/code/figures/event_time_corr/rise_lose_on_chirp_win_by_sexes.png index 142b635..4a54341 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_chirp_win_by_sexes.png and b/code/figures/event_time_corr/rise_lose_on_chirp_win_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_contact.png b/code/figures/event_time_corr/rise_lose_on_contact.png index ccaafde..25632c6 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_contact.png and b/code/figures/event_time_corr/rise_lose_on_contact.png differ diff --git a/code/figures/event_time_corr/rise_lose_on_contact_by_sexes.png b/code/figures/event_time_corr/rise_lose_on_contact_by_sexes.png index 2b8a4a4..ac26a60 100644 Binary files a/code/figures/event_time_corr/rise_lose_on_contact_by_sexes.png and b/code/figures/event_time_corr/rise_lose_on_contact_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chase_off.png b/code/figures/event_time_corr/rise_win_on_chase_off.png index 06dbdca..5887e7f 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chase_off.png and b/code/figures/event_time_corr/rise_win_on_chase_off.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chase_off_by_sexes.png b/code/figures/event_time_corr/rise_win_on_chase_off_by_sexes.png index af83279..03316c2 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chase_off_by_sexes.png and b/code/figures/event_time_corr/rise_win_on_chase_off_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chase_on.png b/code/figures/event_time_corr/rise_win_on_chase_on.png index 437f428..5100e8e 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chase_on.png and b/code/figures/event_time_corr/rise_win_on_chase_on.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chase_on_by_sexes.png b/code/figures/event_time_corr/rise_win_on_chase_on_by_sexes.png index 75e8b09..77b4573 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chase_on_by_sexes.png and b/code/figures/event_time_corr/rise_win_on_chase_on_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chirp_lose.png b/code/figures/event_time_corr/rise_win_on_chirp_lose.png index 1a1ce94..00008aa 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chirp_lose.png and b/code/figures/event_time_corr/rise_win_on_chirp_lose.png differ diff --git a/code/figures/event_time_corr/rise_win_on_chirp_lose_by_sexes.png b/code/figures/event_time_corr/rise_win_on_chirp_lose_by_sexes.png index fb76fb0..b50995e 100644 Binary files a/code/figures/event_time_corr/rise_win_on_chirp_lose_by_sexes.png and b/code/figures/event_time_corr/rise_win_on_chirp_lose_by_sexes.png differ diff --git a/code/figures/event_time_corr/rise_win_on_contact.png b/code/figures/event_time_corr/rise_win_on_contact.png index 4aafc6e..6350b9b 100644 Binary files a/code/figures/event_time_corr/rise_win_on_contact.png and b/code/figures/event_time_corr/rise_win_on_contact.png differ diff --git a/code/figures/event_time_corr/rise_win_on_contact_by_sexes.png b/code/figures/event_time_corr/rise_win_on_contact_by_sexes.png index c8486dd..2ffad86 100644 Binary files a/code/figures/event_time_corr/rise_win_on_contact_by_sexes.png and b/code/figures/event_time_corr/rise_win_on_contact_by_sexes.png differ