diff --git a/code/plot_kdes.py b/code/plot_kdes.py index e965adb..4617886 100644 --- a/code/plot_kdes.py +++ b/code/plot_kdes.py @@ -279,26 +279,28 @@ def main(dataroot): ax[i].fill_between( kde_time, - np.percentile(loser_offsets_boot[-1], 5, axis=0), - np.percentile(loser_offsets_boot[-1], 95, axis=0), - color=ps.gray, - alpha=0.5) + np.percentile(loser_offsets_boot[-1], 1, axis=0), + np.percentile(loser_offsets_boot[-1], 99, axis=0), + color=ps.white, + alpha=0.3) ax[i].plot(kde_time, np.median(loser_offsets_boot[-1], axis=0), color=ps.black, linewidth=2) - # ax[i].fill_between( - # kde_time, - # np.percentile(loser_offsets_jackknife, 5, axis=0), - # np.percentile(loser_offsets_jackknife, 95, axis=0), - # color=ps.blue, - # alpha=0.5) - # ax[i].plot(kde_time, np.median(loser_offsets_jackknife, axis=0), - # color=ps.white, linewidth=2) + ax[i].axvline(0, color=ps.gray, linestyle='--') - ax[i].set_xlim(-60, 60) + ax[i].fill_between( + kde_time, + np.percentile(loser_offsets_jackknife, 5, axis=0), + np.percentile(loser_offsets_jackknife, 95, axis=0), + color=ps.blue, + alpha=0.5) + ax[i].plot(kde_time, np.median(loser_offsets_jackknife, axis=0), + color=ps.white, linewidth=2) - embed() + ax[i].set_xlim(-60, 60) + fig.supylabel('Chirp rate (Hz)', fontsize=14) + fig.supxlabel('Time (s)', fontsize=14) # fig, ax = plt.subplots(2, 3, figsize=( # 21*ps.cm, 10*ps.cm), sharey=True, sharex=True) @@ -391,7 +393,6 @@ def main(dataroot): # color='black', linewidth=2) # ax[0, 0].set_xlim(-30, 30) - plt.show() # winner_onsets = np.sort(flatten(winner_onsets)) # winner_offsets = np.sort(flatten(winner_offsets)) @@ -519,7 +520,7 @@ def main(dataroot): # color=ps.gray, # alpha=0.5) - # plt.show() + plt.show() if __name__ == '__main__': diff --git a/poster/figs/algorithm.pdf b/poster/figs/algorithm.pdf index 359d7e6..ad72921 100644 Binary files a/poster/figs/algorithm.pdf and b/poster/figs/algorithm.pdf differ diff --git a/poster/figs/introplot.pdf b/poster/figs/introplot.pdf index 6bcc304..619182d 100644 Binary files a/poster/figs/introplot.pdf and b/poster/figs/introplot.pdf differ diff --git a/poster/main.tex b/poster/main.tex index 1ac138e..16dce57 100644 --- a/poster/main.tex +++ b/poster/main.tex @@ -36,7 +36,7 @@ blockverticalspace=2mm, colspace=20mm, subcolspace=0mm]{tikzposter} %Default val \vspace{2cm} \begin{tikzfigure}[] \label{fig:alg2} - \includegraphics[width=0.9\linewidth]{figs/algorithm} + \includegraphics[width=1\linewidth]{figs/algorithm} \end{tikzfigure} \vspace{0cm} }