def yticks(*args, **kwargs):
ax = gca()<EOL>if len(args)==<NUM_LIT:0>:<EOL><INDENT>locs = ax.get_yticks()<EOL>labels = ax.get_yticklabels()<EOL><DEDENT>elif len(args)==<NUM_LIT:1>:<EOL><INDENT>locs = ax.set_yticks(args[<NUM_LIT:0>])<EOL>labels = ax.get_yticklabels()<EOL><DEDENT>elif len(args)==<NUM_LIT:2>:<EOL><INDENT>locs = ax.set_yticks(args[<NUM_LIT:0>])<EOL>labels = ax.set_yticklabels(args[<NUM_LIT:1>], **kwargs)<EOL><DEDENT>else: raise TypeError('<STR_LIT>')<EOL>if len(kwargs):<EOL><INDENT>for l in labels:<EOL><INDENT>l.update(kwargs)<EOL><DEDENT><DEDENT>draw_if_interactive()<EOL>return ( locs,<EOL>silent_list('<STR_LIT>', labels)<EOL>)<EOL>
Set/Get the ylimits of the current ticklocs and labels::

  # return locs, labels where locs is an array of tick locations and
  # labels is an array of tick labels.
  locs, labels = yticks()

  # set the locations of the yticks
  yticks( arange(6) )

  # set the locations and labels of the yticks
  yticks( arange(5), ('Tom', 'Dick', 'Harry', 'Sally', 'Sue') )

The keyword args, if any, are :class:`~matplotlib.text.Text`
properties.