'bbox is the Bound2D bounding box in display coords of the Axes
loc is the tick location in data coords
size is the tick size in points'

def __init__(self, axes, loc, label, size=None, width=None, color=None, tickdir=None, pad=None, labelsize=None, labelcolor=None, zorder=None, gridOn=None, tick1On=True, tick2On=True, label1On=True, label2On=False, major=True, labelrotation=0):

    artist.Artist.__init__(self)
    if (gridOn is None):
        if (major and (rcParams[u'axes.grid.which'] in (u'both', u'major'))):
            gridOn = rcParams[u'axes.grid']
        elif ((not major) and (rcParams[u'axes.grid.which'] in (u'both', u'minor'))):
            gridOn = rcParams[u'axes.grid']
        else:
            gridOn = False
    self.set_figure(axes.figure)
    self.axes = axes
    name = self.__name__.lower()
    self._name = name
    self._loc = loc
    if (size is None):
        if major:
            size = rcParams[(u'%s.major.size' % name)]
        else:
            size = rcParams[(u'%s.minor.size' % name)]
    self._size = size
    if (width is None):
        if major:
            width = rcParams[(u'%s.major.width' % name)]
        else:
            width = rcParams[(u'%s.minor.width' % name)]
    self._width = width
    if (color is None):
        color = rcParams[(u'%s.color' % name)]
    self._color = color
    if (pad is None):
        if major:
            pad = rcParams[(u'%s.major.pad' % name)]
        else:
            pad = rcParams[(u'%s.minor.pad' % name)]
    self._base_pad = pad
    if (labelcolor is None):
        labelcolor = rcParams[(u'%s.color' % name)]
    self._labelcolor = labelcolor
    if (labelsize is None):
        labelsize = rcParams[(u'%s.labelsize' % name)]
    self._labelsize = labelsize
    self._labelrotation = labelrotation
    if (zorder is None):
        if major:
            zorder = (mlines.Line2D.zorder + 0.01)
        else:
            zorder = mlines.Line2D.zorder
    self._zorder = zorder
    self.apply_tickdir(tickdir)
    self.tick1line = self._get_tick1line()
    self.tick2line = self._get_tick2line()
    self.gridline = self._get_gridline()
    self.label1 = self._get_text1()
    self.label = self.label1
    self.label2 = self._get_text2()
    self.gridOn = gridOn
    self.tick1On = tick1On
    self.tick2On = tick2On
    self.label1On = label1On
    self.label2On = label2On
    self.update_position(loc)
