Captioned appendix figures.

Polished some figures.
Shortened existing figure captions.
This commit is contained in:
j-hartling
2026-05-21 18:21:33 +02:00
parent 7996a62bde
commit 59a37503ba
20 changed files with 438 additions and 375 deletions

View File

@@ -90,6 +90,12 @@ text_kwargs = dict(
ha='right',
va='top',
)
plateau_dot_kwargs = dict(
marker='o',
markersize=8,
markeredgewidth=1,
clip_on=False,
)
# Prepare graph:
fig, axes = plt.subplots(**fig_kwargs)
@@ -111,12 +117,22 @@ for species, ax in zip(target_species, axes):
# Plot distribution of saturation points:
handles.append(ax.bar(bins, hist, width=bins[1] - bins[0], fc=color, **bar_kwargs))
ax.set_ylim(0, hist.max() * 1.05)
if species == 'Gomphocerippus_rufus':
ax.yaxis.set_major_locator(plt.MultipleLocator(0.05))
else:
ax.yaxis.set_major_locator(plt.MultipleLocator(0.03))
# Indicate mean of distribution:
ax.axvline(data['crit_scales'].mean(), **mean_kwargs)
# ax.axvline(data['crit_scales'].mean(), **mean_kwargs)
# Indicate number of songs:
ax.text(**text_kwargs, s=f'n = {n_songs}', transform=ax.transAxes)
ax.text(**text_kwargs, s=f'n={n_songs}', transform=ax.transAxes)
# Indicate saturation point of condensed curve:
ax.plot(data['crit_scale'], 0, c='w', alpha=1, zorder=5.5,
transform=ax.get_xaxis_transform(), **plateau_dot_kwargs)
ax.plot(data['crit_scale'], 0, mfc=color, mec='k', alpha=0.75, zorder=6,
transform=ax.get_xaxis_transform(), **plateau_dot_kwargs)
# Posthocs:
labels = [shorten_species(species) for species in target_species]