NeuroAnalyzer tutorials: Interactive plots

For interactive plots, GTK and Cairo are required (all necessary libraries should be installed automatically).

Viewing

iview() is a multi-tool for viewing and editing continuous and epoched signals:

iview(eeg)
iview(eeg, zoom=20) # show signal in 20-second fragments

(!) Default zoom value is 10 seconds.

(!) Place the mouse cursor over the plot and use the mouse wheel to scroll channels up and down.

(!) Shift + mouse wheel scrolls the signal by one second.

(!) Ctrl + mouse wheel scrolls the signal by one segment (default is 10 seconds).

(!) Left click on the channel label shows its details.

(!) Right click on the channel label marks the channel as bad.

(!) Right click on the - button to go to the start of the signal.

(!) Right click on the + button to go to the end of the signal.

Keyboard shortcuts:

  • Ctrl + b: toggle butterfly plot
  • Ctrl + m: toggle mean plot
  • Home: go to the signal start
  • End: go to the signal end
  • Ctrl + ,: go back by 1 seconds
  • Ctrl + .: go forward by 1 seconds
  • Alt + ,: go back by zoom seconds
  • Alt + .: go forward by zoom seconds
  • Page Up: slide channels up
  • Page Down: slide channels down
  • Alt + m: toggle monochromatic mode
  • Alt + s: toggle scales
  • [: zoom in
  • ]: zoom out
  • Ctrl + h: show keyboard shortcuts
  • Ctrl + q: close

Butterfly plot:

Mean plot:

(!) Epoched signal should be viewed using iview_ep(), while continuous signal should be viewed using iview(). The meta-function iview() detects type of the signal and chooses appropriate function.

For epoched signal the keyboard shortcuts are:

  • Ctrl + b: toggle butterfly plot
  • Ctrl + m: toggle mean plot
  • Home: go to the first epoch
  • End: go to the last epoch
  • Ctrl + ,: previous epoch
  • Ctrl + .: next epoch
  • Page Up: slide channels up
  • Page Down: slide channels down
  • Alt + m: toggle monochromatic mode
  • Alt + s: toggle scales
  • Ctrl + h: show keyboard shortcuts
  • Ctrl + q: close

(!) Shift + mouse wheel scrolls the signal by one epoch.

(!) Left click on the channel label will show its details.

(!) Right click on the channel label will mark the channel in the current epoch as bad.

(!) Right click on the - button to go to the first epoch.

(!) Right click on the + button to go to the last epoch.

To view one channel at a time, use: iview(eeg, mch=false)

Editing

To interactively edit the signal:

iview(eeg)

(!) Epoched signal should be edited using iview_ep(), while continuous signal should be edited using iview().

(!) Place the first marker by clicking with the left mouse button and the second marker with the right mouse button or use time segment entry boxes.

Keyboard shortcuts:

  • Ctrl + Enter: return current time segment
  • Ctrl + d: delete time segment
  • Ctrl + s: toggle snapping

(!) By default markers are snapped to time points at the closest quarter (0.25, 0.5, 0.75 or 1.0) of a second; to turn it off, use snap=false option or press Ctrl + s while editing.

To edit the epoched signal interactively:

iview_ep(eeg)

Keyboard shortcuts:

  • Ctrl + d: delete current epoch

Comparing signals

To compare two signals, e.g. before and after filtering:

iview(eeg1, eeg2)