Skip to content

Commit

Permalink
fix intrinsic
Browse files Browse the repository at this point in the history
  • Loading branch information
zm711 committed Oct 3, 2023
1 parent 18ec8fb commit c581243
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/spikeanalysis/intrinsic_plotter.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit c581243

Please sign in to comment.