vispy.scene.widgets.axis module

class vispy.scene.widgets.axis.AxisWidget(orientation='left', **kwargs)

Bases: vispy.scene.widgets.widget.Widget

Widget containing an axis

Parameters
orientationstr

Orientation of the axis, ‘left’ or ‘bottom’.

**kwargsdict

Keyword arguments to pass to AxisVisual.

Link this axis to a ViewBox

This makes it so that the axis’s domain always matches the visible range in the ViewBox.

Parameters
viewinstance of ViewBox

The ViewBox to link.

on_resize(event)

Resize event handler

Parameters
eventinstance of Event

The event.