Skip to content

Axes

bqplot.axes

Axis

Bases: BaseAxis

A line axis.

A line axis is the visual representation of a numerical or date scale.

ATTRIBUTE DESCRIPTION
icon

The font-awesome icon name for this object.

TYPE: string (class-level attribute)

axis_types

A registry of existing axis types.

TYPE: dict (class-level attribute)

orientation

The orientation of the axis, either vertical or horizontal

TYPE: {horizontal, vertical}

side

The side of the axis, either bottom, top, left or right.

TYPE: {'bottom', 'top', 'left', 'right'} or None (default: None)

label

The axis label

TYPE: string (default: '')

tick_format

The tick format for the axis, for dates use d3 string formatting.

TYPE: string or None (default: '')

scale

The scale represented by the axis

TYPE: Scale

num_ticks

If tick_values is None, number of ticks

TYPE: int or None (default: None)

tick_values

Tick values for the axis

TYPE: numpy.ndarray or None (default: None)

tick_labels

Override the tick labels with a dictionary of {value: label}. Entries are optional, and if not provided, the default tick labels will be used.

TYPE: dict (default: None)

offset

Contains a scale and a value {'scale': scale or None, 'value': value of the offset} If offset['scale'] is None, the corresponding figure scale is used instead.

TYPE: dict (default: {})

label_location

The location of the label along the axis, one of 'start', 'end' or 'middle'

TYPE: {middle, start, end}

label_color

The color of the axis label

TYPE: Color or None (default: None)

grid_lines

The display of the grid lines

TYPE: {none, solid, dashed}

grid_color

The color of the grid lines

TYPE: Color or None (default: None)

color

The color of the line

TYPE: Color or None (default: None)

label_offset

Label displacement from the axis line. Units allowed are 'em', 'px' and 'ex'. Positive values are away from the figure and negative values are towards the figure with respect to the axis line.

TYPE: string or None (default: None)

visible

A visibility toggle for the axis

TYPE: bool (default: True)

tick_style

Dictionary containing the CSS-style of the text for the ticks. For example: font-size of the text can be changed by passing {'font-size': 14}

TYPE: Dict (default: {})

tick_rotate

Degrees to rotate tick labels by.

TYPE: int (default: 0)

ColorAxis

Bases: Axis

A colorbar axis.

A color axis is the visual representation of a color scale.

ATTRIBUTE DESCRIPTION
scale

The scale represented by the axis

TYPE: ColorScale