'Set various style options.
Keyword Arguments:
tickLength          (int) The maximum length of ticks in pixels.
Positive values point toward the text; negative
values point away.
tickTextOffset      (int) reserved spacing between text and axis in px
tickTextWidth       (int) Horizontal space reserved for tick text in px
tickTextHeight      (int) Vertical space reserved for tick text in px
autoExpandTextSpace (bool) Automatically expand text space if the tick
strings become too long.
tickFont            (QFont or None) Determines the font used for tick
values. Use None for the default font.
stopAxisAtTick      (tuple: (bool min, bool max)) If True, the axis
line is drawn only as far as the last tick.
Otherwise, the line is drawn to the edge of the
AxisItem boundary.
textFillLimits      (list of (tick #, % fill) tuples). This structure
determines how the AxisItem decides how many ticks
should have text appear next to them. Each tuple in
the list specifies what fraction of the axis length
may be occupied by text, given the number of ticks
that already have text displayed. For example::
[(0, 0.8), # Never fill more than 80% of the axis
(2, 0.6), # If we already have 2 ticks with text,
# fill no more than 60% of the axis
(4, 0.4), # If we already have 4 ticks with text,
# fill no more than 40% of the axis
(6, 0.2)] # If we already have 6 ticks with text,
# fill no more than 20% of the axis
showValues          (bool) indicates whether text is displayed adjacent
to ticks.
Added in version 0.9.9'

def setStyle(self, **kwds):

    for (kwd, value) in kwds.items():
        if (kwd not in self.style):
            raise NameError(('%s    is    not    a    valid    style    argument.' % kwd))
        if (kwd in ('tickLength', 'tickTextOffset', 'tickTextWidth', 'tickTextHeight')):
            if (not isinstance(value, int)):
                raise ValueError(("Argument    '%s'    must    be    int" % kwd))
        if (kwd == 'tickTextOffset'):
            if (self.orientation in ('left', 'right')):
                self.style['tickTextOffset'][0] = value
            else:
                self.style['tickTextOffset'][1] = value
        elif (kwd == 'stopAxisAtTick'):
            try:
                assert ((len(value) == 2) and isinstance(value[0], bool) and isinstance(value[1], bool))
            except:
                raise ValueError("Argument    'stopAxisAtTick'    must    have    type    (bool,    bool)")
            self.style[kwd] = value
        else:
            self.style[kwd] = value
    self.picture = None
    self._adjustSize()
    self.update()
