# make gridspec gs_c = gridspec.GridSpec(nrows=4, ncols=2, figure=fig, width_ratios=[2, 1], wspace=0.3, left=0.4, right=1.0, bottom=0.25, top=0.95) # c: breakout ax_c = np.array([fig.add_subplot(gs_c[i, 1]) for i in range(4)]) lineplots.mini_lineplot(lineplots.rf_file_iterator('shift', lp_dists, lp_att_ells, (0, 4, 0), comp_ells=lp_comp_ells), ax_c.ravel(), line_span=pkws.lineplot_span, rad=30, pal=pkws.pal_b, xlim=pkws.lineplot_xlim, ylim=params.shift_lim, xticks=[0, 150], pkws=pkws) for ax in ax_c: ax.set_yticks([ax.get_yticks()[0], ax.get_yticks()[-1]]) ax.set_yticklabels(["", ""]) ax.tick_params(length=pkws.rc['ytick.major.size'] / 2) ax_c[-1].set_xticklabels(["", ""]) # c: main panel
ax_f = fig.add_subplot(gs_f[:, 0]) lineplots.lineplot( lineplots.gain_layer_iterator( lp_dists, sgain_focl[params.layer_plot_file]), ax_f, line_span = pkws.lineplot_span, rad = 30, pal = pkws.pal_l, xlim = pkws.lineplot_xlim, ylim = params.gain_lim) util.labels(ax_f, pkws.labels.unit_distance, pkws.labels.effective_gain) # ---------------- bottom row ---- # panel g ax_g = fig.add_subplot(gs[2, 0]) lineplots.lineplot( lineplots.rf_file_iterator( 'shift', lp_dists, lp_att_ells, (0,4,0)), ax_g, line_span = pkws.lineplot_span, rad = 30, pal = pkws.pal_b, xlim = pkws.lineplot_xlim, ylim = params.shift_lim) util.labels(ax_g, pkws.labels.unit_distance, pkws.labels.rf_shift) util.legend( fig, ax_g, pkws.labels.beta, pkws.pal_b, inset = pkws.legend_inset) # panel h ax_h = fig.add_subplot(gs[2, 1]) lineplots.lineplot( lineplots.rf_file_iterator( 'size', lp_dists, lp_att_ells, (0,4,0)), ax_h, line_span = pkws.lineplot_span, rad = 30, pal = pkws.pal_b,