def xticks(*args, **kwargs):
 ax = gca()
 if (len(args) == 0):
  locs = ax.get_xticks()
  labels = ax.get_xticklabels()
 elif (len(args) == 1):
  locs = ax.set_xticks(args[0])
  labels = ax.get_xticklabels()
 elif (len(args) == 2):
  locs = ax.set_xticks(args[0])
  labels = ax.set_xticklabels(args[1], **kwargs)
 else:
  raise TypeError('Illegal number of arguments to xticks')
 if len(kwargs):
  for l in labels:
   l.update(kwargs)
 draw_if_interactive()
 return (locs, silent_list('Text xticklabel', labels))

def xticks ( * args , ** kwargs ) : ax = gca ( ) if ( len ( args ) == 0 ) : locs = ax . get_xticks ( ) labels = ax . get_xticklabels ( ) elif ( len ( args ) == 1 ) : locs = ax . set_xticks ( args [ 0 ] ) labels = ax . get_xticklabels ( ) elif ( len ( args ) == 2 ) : locs = ax . set_xticks ( args [ 0 ] ) labels = ax . set_xticklabels ( args [ 1 ] , ** kwargs ) else : raise TypeError ( 'Illegal number of arguments to xticks' ) if len ( kwargs ) : for l in labels : l . update ( kwargs ) draw_if_interactive ( ) return ( locs , silent_list ( 'Text xticklabel' , labels ) )
get or set the *x*-limits of the current tick locations and labels .