def _fec_demo_plot(energy_list, out_dir):
    fecs = []
    energies = []
    N = len(energy_list)
    for e in energy_list:
        data = RetinalUtil.read_fecs(e)
        fecs.append(data)
        energies.append(e)
    n_cols = N
    fig = PlotUtilities.figure((n_cols * 1, 6))
    FigureUtil.data_plot(fecs, energies, xlim=[-20, 100])
    PlotUtilities.savefig(fig,
                          out_dir + "energies.png",
                          subplots_adjust=dict(hspace=0.02, wspace=0.04))
Пример #2
0
def _giant_debugging_plot(out_dir, energy_list_arr):
    fig = PlotUtilities.figure((8, 12))
    gs = gridspec.GridSpec(nrows=2, ncols=1, hspace=0.15)
    n_cols = max([len(list_v) for list_v in energy_list_arr])
    for i, energy_list in enumerate(energy_list_arr):
        fecs = []
        energies = []
        for e in energy_list:
            data = RetinalUtil.read_fecs(e)
            fecs.append(data)
            energies.append(e)
        gs_tmp = gridspec.GridSpecFromSubplotSpec(nrows=3,
                                                  ncols=n_cols,
                                                  subplot_spec=gs[i])
        FigureUtil.data_plot(fecs, energies, gs1=gs_tmp, xlim=[-20, 100])
    PlotUtilities.savefig(fig,
                          out_dir + "FigureS_Mega_Debug.png",
                          subplots_adjust=dict(hspace=0.02, wspace=0.04))