[plotstyle] line styles of spines and grid
This commit is contained in:
@@ -21,6 +21,7 @@
|
||||
\section{TODO}
|
||||
\begin{itemize}
|
||||
\item Explain difference stationary versus non-stationary point process
|
||||
\item Show different types of ISI histograms (regular, noisy, poisson, bursty, locking)
|
||||
\item Multitrial firing rates
|
||||
\item Choice of bin width for PSTH, kernel width, also in relation sto
|
||||
stimulus time scale
|
||||
|
||||
@@ -53,8 +53,8 @@ def plot_results(sta_time, st_average, stim_time, s_est, stimulus, duration, dt)
|
||||
sta_ax.set_yticks(np.arange(-0.1, 0.21, 0.1))
|
||||
ylim = sta_ax.get_ylim()
|
||||
xlim = sta_ax.get_xlim()
|
||||
sta_ax.plot(list(xlim), [0., 0.], zorder=1, color='darkgray', ls='--', lw=1)
|
||||
sta_ax.plot([0., 0.], list(ylim), zorder=1, color='darkgray', ls='--', lw=1)
|
||||
sta_ax.plot(list(xlim), [0., 0.], zorder=1, **lsGrid)
|
||||
sta_ax.plot([0., 0.], list(ylim), zorder=1, **lsGrid)
|
||||
sta_ax.set_xlim(list(xlim))
|
||||
sta_ax.set_ylim(list(ylim))
|
||||
sta_ax.annotate('Time of\nspike',
|
||||
@@ -75,7 +75,7 @@ def plot_results(sta_time, st_average, stim_time, s_est, stimulus, duration, dt)
|
||||
stim_ax.set_xlim(0.0, 200)
|
||||
stim_ax.set_ylim([-1., 1.])
|
||||
stim_ax.legend(loc=(0.3, 0.85), frameon=False)
|
||||
stim_ax.plot([0.0, 250], [0., 0.], color="darkgray", lw=1, ls='--', zorder=1)
|
||||
stim_ax.plot([0.0, 250], [0., 0.], zorder=1, **lsGrid)
|
||||
#stim_ax.text(-0.1, 1.04, "B", transform=stim_ax.transAxes, size=24)
|
||||
|
||||
fig.savefig("sta.pdf")
|
||||
|
||||
Reference in New Issue
Block a user