MCPcopy Index your code
hub / github.com/bqplot/bqplot / Axis

Class Axis

bqplot/axes.py:45–168  ·  view source on GitHub ↗

A line axis. A line axis is the visual representation of a **numerical** or **date scale**. Attributes ---------- icon: string (class-level attribute) The font-awesome icon name for this object. axis_types: dict (class-level attribute) A registry of existing axi

Source from the content-addressed store, hash-verified

43
44@register_axis('bqplot.Axis')
45class Axis(BaseAxis):
46
47 """A line axis.
48
49 A line axis is the visual representation of a **numerical** or **date scale**.
50
51 Attributes
52 ----------
53 icon: string (class-level attribute)
54 The font-awesome icon name for this object.
55 axis_types: dict (class-level attribute)
56 A registry of existing axis types.
57 orientation: {'horizontal', 'vertical'}
58 The orientation of the axis, either vertical or horizontal
59 side: {'bottom', 'top', 'left', 'right'} or None (default: None)
60 The side of the axis, either bottom, top, left or right.
61 label: string (default: '')
62 The axis label
63 tick_format: string or None (default: '')
64 The tick format for the axis, for dates use d3 string formatting.
65 scale: Scale
66 The scale represented by the axis
67 num_ticks: int or None (default: None)
68 If tick_values is None, number of ticks
69 tick_values: numpy.ndarray or None (default: None)
70 Tick values for the axis
71 tick_labels: dict (default: None)
72 Override the tick labels with a dictionary of {value: label}.
73 Entries are optional, and if not provided, the default tick labels
74 will be used.
75 offset: dict (default: {})
76 Contains a scale and a value {'scale': scale or None,
77 'value': value of the offset}
78 If offset['scale'] is None, the corresponding figure scale is used
79 instead.
80 label_location: {'middle', 'start', 'end'}
81 The location of the label along the axis, one of 'start', 'end' or
82 'middle'
83 label_color: Color or None (default: None)
84 The color of the axis label
85 grid_lines: {'none', 'solid', 'dashed'}
86 The display of the grid lines
87 grid_color: Color or None (default: None)
88 The color of the grid lines
89 color: Color or None (default: None)
90 The color of the line
91 label_offset: string or None (default: None)
92 Label displacement from the axis line. Units allowed are 'em', 'px'
93 and 'ex'. Positive values are away from the figure and negative
94 values are towards the figure with respect to the axis line.
95 visible: bool (default: True)
96 A visibility toggle for the axis
97 tick_style: Dict (default: {})
98 Dictionary containing the CSS-style of the text for the ticks.
99 For example: font-size of the text can be changed by passing
100 `{'font-size': 14}`
101 tick_rotate: int (default: 0)
102 Degrees to rotate tick labels by.

Callers

nothing calls this directly

Calls 1

array_dimension_boundsFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…