Пример #1
0
    xlim = pkws.lineplot_xlim, ylim = params.gain_lim)
util.labels(ax_e, pkws.labels.unit_distance, pkws.labels.effective_gain)
"""

# panel f
ax_f = fig.add_subplot(gs[0, 0])
behavior.bhv_plot(bhv_focl_data,
                  bhv_dist_data,
                  bar1=0.69,
                  bar2=0.87,
                  ax=ax_f,
                  yrng=pkws.bhv_yrng,
                  pal=pkws.pal_bhv,
                  jitter=0.03,
                  bootstrap_n=1000,
                  pkws=pkws,
                  trim_axes=True,
                  offset_axes=5,
                  yticks=(0.55, 0.95))
util.legend(fig,
            ax_f, [pkws.labels.gaussian_model] + params.bhv_labels,
            pkws.pal_bhv,
            inset=pkws.legend_inset,
            inset_y=0,
            left=True,
            pkws=pkws)
util.axis_expand(ax_f, L=-0.06, B=-0.11, R=0.01, T=0.1)

# save
plt.savefig(params.output, transparent=True)
Пример #2
0
)

ax_e = fig.add_subplot(gs[0, 0])
lineplots.lineplot(lineplots.gain_file_iterator(lp_dists,
                                                sgain_focl, (0, 4, 0),
                                                gain_comp=sgain_comp),
                   ax_e,
                   line_span=pkws.lineplot_span,
                   rad=30,
                   pal=pkws.pal_b,
                   xlim=(0, 180),
                   ylim=params.gain_lim,
                   pkws=pkws)
util.labels(ax_e,
            pkws.labels.unit_distance,
            pkws.labels.effective_gain,
            pkws=pkws)
util.legend(fig,
            ax_e,
            pkws.labels.beta,
            pkws.pal_b,
            inset=pkws.legend_inset,
            pkws=pkws)
ax_e.set_yticks([1, params.gain_lim[1]])
ax_e.set_xticks([0, 150])
sns.despine(ax=ax_e, trim=True, offset=5)
util.axis_expand(ax_e, L=-0.07, B=-0.1, R=0.1, T=0.05)

# save
plt.savefig(params.output, transparent=True)
Пример #3
0
              label_vofs=-0.04)

# panel c : single axis
ax_c = fig.add_subplot(gs[1, 1])
lineplots.lineplot(lineplots.rf_file_iterator('shift',
                                              lp_dists,
                                              lp_att_ells, (0, 4, 0),
                                              comp_ells=lp_comp_ells),
                   ax_c,
                   line_span=30,
                   rad=30,
                   pal=pkws.pal_b,
                   xlim=(0, 180),
                   ylim=params.shift_lim)
util.labels(ax_c, pkws.labels.unit_distance, pkws.labels.rf_shift)
util.legend(fig, ax_c, pkws.labels.beta, pkws.pal_b, inset=pkws.legend_inset)

# panel d : single axis
ax_d = fig.add_subplot(gs[1, 2])
lineplots.lineplot(lineplots.rf_file_iterator('size',
                                              lp_dists,
                                              lp_att_ells, (0, 4, 0),
                                              comp_ells=lp_comp_ells),
                   ax_d,
                   line_span=30,
                   rad=30,
                   pal=pkws.pal_b,
                   xlim=(0, 180),
                   ylim=params.size_lim)
util.labels(ax_d, pkws.labels.unit_distance, pkws.labels.rf_size)
Пример #4
0
#     fig, ax_d, size_map, ticks = params.size_lim + (1,),
#     label = pkws.labels.rf_size, label_vofs = -0.03)


# panel c : single axis
ax_c = fig.add_subplot(gs[1,1])
lineplots.lineplot(
    lineplots.rf_file_iterator(
        'shift', lp_dists, lp_att_ells, (0,4,0),
        comp_ells = lp_comp_ells),
    ax_c,
    line_span = 30, rad = 30, pal = pkws.pal_b,
    xlim = (0, 180), ylim = params.shift_lim)
util.labels(ax_c, pkws.labels.unit_distance, pkws.labels.rf_shift)
util.legend(
    fig, ax_c, pkws.labels.beta, pkws.pal_b,
    inset = pkws.legend_inset)


# panel d : single axis
ax_d = fig.add_subplot(gs[1,2])
lineplots.lineplot(
    lineplots.rf_file_iterator(
        'size', lp_dists, lp_att_ells, (0,4,0),
        comp_ells = lp_comp_ells),
    ax_d,
    line_span = 30, rad = 30, pal = pkws.pal_b,
    xlim = (0, 180), ylim = params.size_lim)
util.labels(ax_d, pkws.labels.unit_distance, pkws.labels.rf_size)

Пример #5
0
    fig, ax_c, r2_mappable, ticks = [0.6, 1.],
    label = pkws.labels.feature_r2,)


# ----------------  middle row  ----

# panel d
ax_d = fig.add_subplot(gs[1, 0])
lineplots.lineplot(
    lineplots.rf_layer_iterator(
        'shift', lp_dists, lp_att_ells[params.layer_plot_file]),
    ax_d,
    line_span = pkws.lineplot_span, rad = 30, pal = pkws.pal_l,
    xlim = pkws.layerplot_xlim, ylim = params.shift_lim)
util.labels(ax_d, pkws.labels.unit_distance, pkws.labels.rf_shift)
util.legend(fig, ax_d, pkws.labels.layer, pkws.pal_l, inset = 0.08)

# panel e
ax_e = fig.add_subplot(gs[1, 1])
lineplots.lineplot(
    lineplots.rf_layer_iterator(
        'size', lp_dists, lp_att_ells[params.layer_plot_file]),
    ax_e,
    line_span = pkws.lineplot_span, rad = 30, pal = pkws.pal_l,
    xlim = pkws.layerplot_xlim, ylim = params.size_lim) #ylim = pkws.small_size_ylim
util.labels(ax_e, pkws.labels.unit_distance, pkws.labels.rf_size)

# panel f
gs_f = gs[1,2].subgridspec(4, 2, **pkws.mini_gridspec,
    width_ratios = [2, 1])
ax_f = np.array([fig.add_subplot(gs_f[i, 1]) for i in range(4)])