Nearly finished description of *** fig_invariance_field.pdf...
This commit is contained in:
@@ -114,7 +114,7 @@ base_grid_kwargs = dict(
|
||||
top=raw_grid_kwargs['top'],
|
||||
)
|
||||
inset_dist_bounds = [1.01, 0, 0.95, 1]
|
||||
inset_ax_bounds = [raw_grid_kwargs['left'], 0.1, raw_grid_kwargs['right'] - raw_grid_kwargs['left'], 0.01]
|
||||
inset_ax_bounds = [raw_grid_kwargs['left'], 0.12, raw_grid_kwargs['right'] - raw_grid_kwargs['left'], 0.01]
|
||||
|
||||
# PLOT SETTINGS:
|
||||
fs = dict(
|
||||
@@ -261,6 +261,12 @@ dist_line_kwargs = dict(
|
||||
dist_fill_kwargs = dict(
|
||||
lw=lw['dist'],
|
||||
)
|
||||
diag_kwargs = dict(
|
||||
c=(0.3,) * 3,
|
||||
lw=2,
|
||||
ls='--',
|
||||
zorder=1.9,
|
||||
)
|
||||
|
||||
# EXECUTION:
|
||||
|
||||
@@ -439,6 +445,10 @@ for stage in stages:
|
||||
fill_kwargs = dist_fill_kwargs | dict(color=color)
|
||||
y_dist(raw_inset, measure[-1], nbins=75, log=False,
|
||||
line_kwargs=line_kwargs, fill_kwargs=fill_kwargs)
|
||||
|
||||
# Indicate "diagonal":
|
||||
if stage == 'filt':
|
||||
raw_axes[0].plot(scales, scales * (measure[-1] / scales[-1]), **diag_kwargs)
|
||||
|
||||
## NORMALIZED MEASURE:
|
||||
|
||||
|
||||
@@ -14,10 +14,10 @@ target_species = [
|
||||
'Chorthippus_mollis',
|
||||
# 'Chrysochraon_dispar',
|
||||
# 'Euchorthippus_declivus',
|
||||
'Gomphocerippus_rufus',
|
||||
# 'Gomphocerippus_rufus',
|
||||
# 'Omocestus_rufipes',
|
||||
# 'Pseudochorthippus_parallelus',
|
||||
][1]
|
||||
][0]
|
||||
example_file = {
|
||||
'Chorthippus_biguttulus': 'Chorthippus_biguttulus_GBC_94-17s73.1ms-19s977ms',
|
||||
'Chorthippus_mollis': 'Chorthippus_mollis_DJN_41_T28C-46s4.58ms-1m15s697ms',
|
||||
@@ -54,6 +54,8 @@ thresh_abs = thresh_rel[:, None] * thresh_data['sds'][None, :]
|
||||
for data_path, name in zip(data_paths, crop_paths(data_paths)):
|
||||
save_detailed = example_file in name
|
||||
print(f'Processing {name}')
|
||||
if "DJN" in name:
|
||||
continue
|
||||
|
||||
# Get song recording (prior to anything):
|
||||
data, config = load_data(data_path, files='raw')
|
||||
|
||||
Reference in New Issue
Block a user