'Set appearance parameters for ticks and ticklabels.
For documentation of keyword arguments, see
:meth:`matplotlib.axes.Axes.tick_params`.'

def set_tick_params(self, which=u'major', reset=False, **kw):

    dicts = []
    if ((which == u'major') or (which == u'both')):
        dicts.append(self._major_tick_kw)
    if ((which == u'minor') or (which == u'both')):
        dicts.append(self._minor_tick_kw)
    kwtrans = self._translate_tick_kw(kw, to_init_kw=True)
    for d in dicts:
        if reset:
            d.clear()
        d.update(kwtrans)
    if reset:
        self.reset_ticks()
    else:
        if ((which == u'major') or (which == u'both')):
            for tick in self.majorTicks:
                tick._apply_params(**self._major_tick_kw)
        if ((which == u'minor') or (which == u'both')):
            for tick in self.minorTicks:
                tick._apply_params(**self._minor_tick_kw)
        if (u'labelcolor' in kwtrans):
            self.offsetText.set_color(kwtrans[u'labelcolor'])
    self.stale = True
