VTickGroup#

class pyqtgraph.VTickGroup(xvals=None, yrange=None, pen=None)[source]#

Bases: UIGraphicsItem

Draws a set of tick marks which always occupy the same vertical range of the view, but have x coordinates relative to the data within the view.

__init__(xvals=None, yrange=None, pen=None)[source]#

Arguments:

xvals

A list of x values (in data coordinates) at which to draw ticks.

yrange

A list of [low, high] limits for the tick. 0 is the bottom of the view, 1 is the top. [0.8, 1] would draw ticks in the top fifth of the view.

pen

The pen to use for drawing ticks. Default is grey. Can be specified as any argument valid for mkPen

setPen(*args, **kwargs)[source]#

Set the pen to use for drawing ticks. Can be specified as any arguments valid for mkPen

setXVals(vals)[source]#

Set the x values for the ticks.

Arguments:

vals

A list of x values (in data/plot coordinates) at which to draw ticks.

setYRange(vals)[source]#

Set the y range [low, high] that the ticks are drawn on. 0 is the bottom of the view, 1 is the top.