'**Arguments:**
orientation     one of \'left\', \'right\', \'top\', or \'bottom\'
maxTickLength   (px) maximum length of ticks to draw. Negative values draw
into the plot, positive values draw outward.
linkView        (ViewBox) causes the range of values displayed in the axis
to be linked to the visible range of a ViewBox.
showValues      (bool) Whether to display values adjacent to ticks
pen             (QPen) Pen used when drawing ticks.'

def __init__(self, orientation, pen=None, linkView=None, parent=None, maxTickLength=(-5), showValues=True):

    GraphicsWidget.__init__(self, parent)
    self.label = QtGui.QGraphicsTextItem(self)
    self.picture = None
    self.orientation = orientation
    if (orientation not in ['left', 'right', 'top', 'bottom']):
        raise Exception("Orientation    argument    must    be    one    of    'left',    'right',    'top',    or    'bottom'.")
    if (orientation in ['left', 'right']):
        self.label.rotate((-90))
    self.style = {'tickTextOffset': [5, 2], 'tickTextWidth': 30, 'tickTextHeight': 18, 'autoExpandTextSpace': True, 'tickFont': None, 'stopAxisAtTick': (False, False), 'textFillLimits': [(0, 0.8), (2, 0.6), (4, 0.4), (6, 0.2)], 'showValues': showValues, 'tickLength': maxTickLength, 'maxTickLevel': 2, 'maxTextLevel': 2}
    self.textWidth = 30
    self.textHeight = 18
    self.fixedWidth = None
    self.fixedHeight = None
    self.labelText = ''
    self.labelUnits = ''
    self.labelUnitPrefix = ''
    self.labelStyle = {}
    self.logMode = False
    self.tickFont = None
    self._tickLevels = None
    self._tickSpacing = None
    self.scale = 1.0
    self.autoSIPrefix = True
    self.autoSIPrefixScale = 1.0
    self.setRange(0, 1)
    if (pen is None):
        self.setPen()
    else:
        self.setPen(pen)
    self._linkedView = None
    if (linkView is not None):
        self.linkToView(linkView)
    self.showLabel(False)
    self.grid = False
