def _feather_plot(data,plot_subdir,f_x = lambda x: x.Separation, xlim=[-20, 150]): _, ylim = ProcessingUtil.nm_and_pN_limits(data, f_x=f_x) for i,d in enumerate(data): fig = PlotUtilities.figure() ProcessingUtil.plot_single_fec(d, f_x, xlim, ylim, markevery=1, i=i) x = f_x(d) * 1e9 for i in d.info_feather.event_idx: plt.axvline(x[i]) name = FEC_Util.fec_name_func(0,d) PlotUtilities.savefig(fig,plot_subdir + name + ".png")
def _plot_fec_list(list_v, xlim, ylim, label=None, color=None, linewidth=0.3, **kw): f_x = lambda x_tmp: x_tmp.Separation for i, d in enumerate(list_v): label_tmp = label if i == 0 else None ProcessingUtil.plot_single_fec(d, f_x, xlim, ylim, label=label_tmp, style_data=dict(color=color, alpha=0.3, linewidth=linewidth), i=i, **kw)