From c58124324b6083cbdd46e157d1130f56de3e7643 Mon Sep 17 00:00:00 2001 From: zm711 <92116279+zm711@users.noreply.github.com> Date: Tue, 3 Oct 2023 11:10:58 -0400 Subject: [PATCH] fix intrinsic --- src/spikeanalysis/intrinsic_plotter.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/spikeanalysis/intrinsic_plotter.py b/src/spikeanalysis/intrinsic_plotter.py index 760f2a0..92a0524 100644 --- a/src/spikeanalysis/intrinsic_plotter.py +++ b/src/spikeanalysis/intrinsic_plotter.py @@ -159,7 +159,7 @@ def plot_waveforms(self, sp: SpikeData): ax.plot(np.linspace(-40, 41, num=82), current_waves[wave], color="gray") ax.plot(np.linspace(-40, 41, num=82), current_mean, color="black") - ax.set(xlabel="Samples", ylabel="Voltage (μV)") + ax.set(xlabel="Samples", ylabel="Arbitary Units") plt.tight_layout() if self.title: plt.title(self.title) @@ -246,7 +246,7 @@ def plot_spike_depth_fr(self, sp: SpikeData): ax.set_xlabel("Spike Rate (Hz)") ax.set_ylabel("Depth (um)") plt.figure(dpi=self.dpi) - ax.title("depth by firing rate") + plt.title("depth by firing rate") plt.show() def plot_cdf(self, sp: SpikeData): @@ -281,7 +281,7 @@ def plot_cdf(self, sp: SpikeData): pdfs, cdfs = self._compute_cdf_pdf(spike_amplitudes, spike_depths, amp_bins, depth_bins, recording_duration) final_depths = ["%.1f" % float(x) for x in depth_bins[1:]] - final_amps = ["%.2f" % float(x for x in amp_bins[1:])] + final_amps = ["%.2f" % float(x) for x in amp_bins[1:]] pdf_df = pd.DataFrame(pdfs, columns=final_amps, index=final_depths) self._plot_cdf_pdf(pdf_df)