Browse Source

Fixes to make figures and example script compatible with Neo 0.5.2

Michael Denker 6 years ago
parent
commit
7b7b9acfe8
2 changed files with 2 additions and 2 deletions
  1. 1 1
      code/data_overview_1.py
  2. 1 1
      code/example.py

+ 1 - 1
code/data_overview_1.py

@@ -534,7 +534,7 @@ el_raw_sig = trial_seg_raw.analogsignals[0]
 
 # plotting raw signal trace
 ax4.plot(el_raw_sig.times.rescale(plotting_time_unit),
-         el_raw_sig.rescale(raw_signal_unit),
+         el_raw_sig.squeeze().rescale(raw_signal_unit),
          color='k')
 
 # setting layout of raw signal plot

+ 1 - 1
code/example.py

@@ -203,7 +203,7 @@ nsx_colors = ['b', 'k', 'r']
 for i, anasig in enumerate(trial_segment.analogsignals):
         plt.plot(
             anasig.times.rescale(time_unit),
-            anasig.rescale(amplitude_unit),
+            anasig.squeeze().rescale(amplitude_unit),
             label=anasig.name,
             color=nsx_colors[i])