Added loads of units in nearly all graphs.
Overhauled fig_invariance_full.pdf. Added some legends, somewhere.
This commit is contained in:
@@ -83,8 +83,8 @@ pure_grid_kwargs = dict(
|
||||
ncols=None,
|
||||
wspace=0.1,
|
||||
hspace=0.15,
|
||||
left=0.08 - snip_col_shift,
|
||||
right=0.95,
|
||||
left=0.1 - snip_col_shift,
|
||||
right=0.98,
|
||||
bottom=1 - block_height - edge_padding,
|
||||
top=1 - edge_padding,
|
||||
height_ratios=[1, 1]
|
||||
@@ -132,23 +132,22 @@ species_colors = load_colors('../data/species_colors.npz')
|
||||
lw = dict(
|
||||
snip=0.5,
|
||||
big=3,
|
||||
spec=2,
|
||||
spec=1.5,
|
||||
legend=5,
|
||||
)
|
||||
dash_cycle = 6 # points
|
||||
ls_env = [
|
||||
(0, np.array((0.2, 0.8)) * dash_cycle),
|
||||
(0, np.array((0.1,) * 10) * dash_cycle),
|
||||
(0, np.array((0.6, 0.1, 0.2, 0.1)) * dash_cycle),
|
||||
(0, np.array((0.5, 0.5)) * dash_cycle),
|
||||
(0, np.array((0.3, 0.2, 0.3, 0.2)) * dash_cycle),
|
||||
'solid',
|
||||
] # [np.nan, 2500, 250, 25]
|
||||
xlabels = dict(
|
||||
big='scale $\\alpha$',
|
||||
)
|
||||
ylabels = dict(
|
||||
raw='$x$',
|
||||
filt='$x_{\\text{filt}}$',
|
||||
env='$x_{\\text{env}}$',
|
||||
filt='$x_{\\text{filt}}$\n$[\\text{a.u.}]$',
|
||||
env='$x_{\\text{env}}$\n$[\\text{a.u.}]$',
|
||||
big_pure='$\\sigma_x$',
|
||||
big_noise='$\\sigma_x\\,/\\,\\sigma_{\\eta}$' if relate_to_noise else None,
|
||||
)
|
||||
@@ -159,23 +158,17 @@ xlab_big_kwargs = dict(
|
||||
va='bottom',
|
||||
)
|
||||
ylab_snip_kwargs = dict(
|
||||
x=0,
|
||||
x=0.025,
|
||||
fontsize=fs['lab_tex'],
|
||||
rotation=0,
|
||||
ha='left',
|
||||
ha='center',
|
||||
va='center',
|
||||
)
|
||||
ylab_pure_kwargs = dict(
|
||||
x=0,
|
||||
ylab_big_kwargs = dict(
|
||||
x=-0.2,
|
||||
fontsize=fs['lab_tex'],
|
||||
ha='center',
|
||||
va='top',
|
||||
)
|
||||
ylab_noise_kwargs = dict(
|
||||
y=0.5,
|
||||
fontsize=fs['lab_tex'],
|
||||
ha='center',
|
||||
va='top',
|
||||
va='bottom',
|
||||
)
|
||||
ylim_zoom_factor = 0.03
|
||||
yloc = dict(
|
||||
@@ -346,9 +339,8 @@ for i, scales in enumerate([pure_scales, noise_scales, noise_scales]):
|
||||
ax.set_ylim(0.1, 100)
|
||||
big_axes[i] = ax
|
||||
shift_subplot(big_axes[0], dx=big_col_shift)
|
||||
ylabel(big_axes[0], ylabels['big_pure'], transform=big_subfig.transSubfigure, **ylab_pure_kwargs)
|
||||
ylabel(big_axes[1], ylabels['big_noise'], transform=big_axes[1].transAxes, **ylab_noise_kwargs,
|
||||
x=(big_subfig.transSubfigure + big_axes[0].transAxes.inverted()).transform((ylab_pure_kwargs['x'], 0))[0])
|
||||
ylabel(big_axes[0], ylabels['big_pure'], transform=big_axes[0].transAxes, **ylab_big_kwargs)
|
||||
ylabel(big_axes[1], ylabels['big_noise'], transform=big_axes[1].transAxes, **ylab_big_kwargs)
|
||||
super_xlabel(xlabels['big'], big_subfig, big_axes[0], big_axes[-1], **xlab_big_kwargs)
|
||||
letter_subplots(big_axes, 'cde', **letter_big_kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user