def yticks(*args, **kwargs):
 ax = gca()
 if (len(args) == 0):
  locs = ax.get_yticks()
  labels = ax.get_yticklabels()
 elif (len(args) == 1):
  locs = ax.set_yticks(args[0])
  labels = ax.get_yticklabels()
 elif (len(args) == 2):
  locs = ax.set_yticks(args[0])
  labels = ax.set_yticklabels(args[1], **kwargs)
 else:
  raise TypeError('Illegal number of arguments to yticks')
 if len(kwargs):
  for l in labels:
   l.update(kwargs)
 draw_if_interactive()
 return (locs, silent_list('Text yticklabel', labels))

def yticks ( * args , ** kwargs ) : ax = gca ( ) if ( len ( args ) == 0 ) : locs = ax . get_yticks ( ) labels = ax . get_yticklabels ( ) elif ( len ( args ) == 1 ) : locs = ax . set_yticks ( args [ 0 ] ) labels = ax . get_yticklabels ( ) elif ( len ( args ) == 2 ) : locs = ax . set_yticks ( args [ 0 ] ) labels = ax . set_yticklabels ( args [ 1 ] , ** kwargs ) else : raise TypeError ( 'Illegal number of arguments to yticks' ) if len ( kwargs ) : for l in labels : l . update ( kwargs ) draw_if_interactive ( ) return ( locs , silent_list ( 'Text yticklabel' , labels ) )
get or set the *y*-limits of the current tick locations and labels .