Added loads of units in nearly all graphs.

Overhauled fig_invariance_full.pdf.
Added some legends, somewhere.
This commit is contained in:
j-hartling
2026-04-28 19:43:05 +02:00
parent 7e1aa8721a
commit e70d100655
40 changed files with 965 additions and 471 deletions

View File

@@ -5,13 +5,13 @@ from IPython import embed
# GENERAL SETTINGS:
target_species = [
'Chorthippus_biguttulus',
'Chorthippus_mollis',
'Chrysochraon_dispar',
'Euchorthippus_declivus',
'Gomphocerippus_rufus',
# 'Chorthippus_biguttulus',
# 'Chorthippus_mollis',
# 'Chrysochraon_dispar',
# 'Euchorthippus_declivus',
# 'Gomphocerippus_rufus',
'Omocestus_rufipes',
'Pseudochorthippus_parallelus',
# 'Pseudochorthippus_parallelus',
]
stages = ['filt', 'env', 'inv', 'conv', 'feat']
search_path = '../data/inv/short/'
@@ -30,11 +30,15 @@ for i, species in enumerate(target_species):
for j, path in enumerate(all_paths):
# Load invariance data:
data, config = load_data(path, 'scales', 'measure')
data, config = load_data(path, 'scales', ['measure', 'thresh'])
if j == 0:
# Prepare species-specific storage:
species_data = dict(scales=data['scales'])
species_data = dict(
scales=data['scales'],
thresh_rel=data['thresh_rel'],
thresh_abs=data['thresh_abs']
)
for stage in stages:
mkey = f'measure_{stage}'
shape = data[mkey].shape + (len(all_paths),)