#NEWLINE# def _plot_onscroll( event , params ) : #NEWLINE# #INDENT# 'Function to handle scroll events.' #NEWLINE# if ( event . key == 'control' ) : #NEWLINE# #INDENT# if ( event . step < 0 ) : #NEWLINE# #INDENT# event . key = '-' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# event . key = '+' #NEWLINE# #UNINDENT# _plot_onkey ( params , params ) #NEWLINE# return #NEWLINE# #UNINDENT# if params [ 'butterfly' ] : #NEWLINE# #INDENT# return #NEWLINE# #UNINDENT# _plot_raw_onscroll ( event , params , len ( params [ 'ch_names' ] ) )