#NEWLINE# def __axis_cqt( data , n_ticks , horiz , note = False , fmin = None , bins_per_octave = 12 , **_kwargs ) : #NEWLINE# #INDENT# 'CQT axes' #NEWLINE# if ( fmin is None ) : #NEWLINE# #INDENT# fmin = core . note_to_hz ( 'C1' ) #NEWLINE# #UNINDENT# if horiz : #NEWLINE# #INDENT# axis = 'x' #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# axis = 'y' #NEWLINE# #UNINDENT# fmt = _kwargs . pop ( 'freq_fmt' , 'Hz' ) #NEWLINE# ( n , ticker , labeler ) = __get_shape_artists ( data , horiz ) #NEWLINE# positions = np . linspace ( 0 , ( n - 1 ) , num = n_ticks , endpoint = True ) . astype ( int ) #NEWLINE# values = core . cqt_frequencies ( ( n + 1 ) , fmin = fmin , bins_per_octave = bins_per_octave ) #NEWLINE# if note : #NEWLINE# #INDENT# values = core . hz_to_note ( values [ positions ] ) #NEWLINE# label = 'Note' #NEWLINE# ticker ( positions , values ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# values = values [ positions ] #NEWLINE# ( _ , label ) = frequency_ticks ( positions , values , n_ticks = None , axis = axis , freq_fmt = fmt ) #NEWLINE# #UNINDENT# labeler ( label )