NumberLine
from noon import NumberLine
Source-derived class. Host availability is not inferred from this listing. See reference scope.
Bases: _compat.Group. Declared members follow; inherited and dynamically attached members are not expanded.
Linear or LogBase number line with shared Rust queries and retained ticks.
NumberLine.__init__
NumberLine.__init__(self, x_range=None, *, length=None, unit_size=1.0, rotation=0.0, scaling=None, include_ticks=True, tick_size=0.1, exclude_origin_tick=False, include_tip=False, numbers_with_elongated_ticks=None, longer_tick_multiple=2, include_numbers=False, numbers_to_exclude=None, numbers_to_include=None, font_size=36, label_direction=None, line_to_number_buff=None, tip_width=None, tip_height=None, tip_shape=None, label_constructor=None, decimal_number_config=None, color=None, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
x_range | positional or keyword | Not annotated | None |
length | keyword-only | Not annotated | None |
unit_size | keyword-only | Not annotated | 1.0 |
rotation | keyword-only | Not annotated | 0.0 |
scaling | keyword-only | Not annotated | None |
include_ticks | keyword-only | Not annotated | True |
tick_size | keyword-only | Not annotated | 0.1 |
exclude_origin_tick | keyword-only | Not annotated | False |
include_tip | keyword-only | Not annotated | False |
numbers_with_elongated_ticks | keyword-only | Not annotated | None |
longer_tick_multiple | keyword-only | Not annotated | 2 |
include_numbers | keyword-only | Not annotated | False |
numbers_to_exclude | keyword-only | Not annotated | None |
numbers_to_include | keyword-only | Not annotated | None |
font_size | keyword-only | Not annotated | 36 |
label_direction | keyword-only | Not annotated | None |
line_to_number_buff | keyword-only | Not annotated | None |
tip_width | keyword-only | Not annotated | None |
tip_height | keyword-only | Not annotated | None |
tip_shape | keyword-only | Not annotated | None |
label_constructor | keyword-only | Not annotated | None |
decimal_number_config | keyword-only | Not annotated | None |
color | keyword-only | Not annotated | None |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.shaft
NumberLine.shaft(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.ticks
NumberLine.ticks(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.tip
NumberLine.tip(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.tip
NumberLine.tip(self, value)Decorators: tip.setter
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
value | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.x_range
NumberLine.x_range(self)Decorators: property
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.number_to_point
NumberLine.number_to_point(self, number)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
number | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.point_to_number
NumberLine.point_to_number(self, point)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
point | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_unit_size
NumberLine.get_unit_size(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_start
NumberLine.get_start(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_end
NumberLine.get_end(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_start_and_end
NumberLine.get_start_and_end(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_vector
NumberLine.get_vector(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_length
NumberLine.get_length(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_angle
NumberLine.get_angle(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_slope
NumberLine.get_slope(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_projection
NumberLine.get_projection(self, point)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
point | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.set_angle
NumberLine.set_angle(self, angle, about_point=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
angle | positional or keyword | Not annotated | No default |
about_point | positional or keyword | Not annotated | None |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.set_length
NumberLine.set_length(self, length)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
length | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.rotate_about_zero
NumberLine.rotate_about_zero(self, angle, axis=_base.OUT, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
angle | positional or keyword | Not annotated | No default |
axis | positional or keyword | Not annotated | _base.OUT |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.rotate_about_number
NumberLine.rotate_about_number(self, number, angle, axis=_base.OUT, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
number | positional or keyword | Not annotated | No default |
angle | positional or keyword | Not annotated | No default |
axis | positional or keyword | Not annotated | _base.OUT |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_tick_range
NumberLine.get_tick_range(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
Return Manim's linear tick values through the shared Rust query.
NumberLine.get_tick
NumberLine.get_tick(self, x, size=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
x | positional or keyword | Not annotated | No default |
size | positional or keyword | Not annotated | None |
Return annotation: Not annotated
Create one Manim-style tick using the current line orientation.
NumberLine.get_tick_marks
NumberLine.get_tick_marks(self)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: Not annotated
No docstring declared here. Consult the source and host reference.
NumberLine.get_number_mobject
NumberLine.get_number_mobject(self, number, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
number | positional or keyword | Not annotated | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Return one detached DecimalNumber label at a numeric position. Pass ``font=...`` to select the explicit native-Text subset.
NumberLine.get_number_mobjects
NumberLine.get_number_mobjects(self, *numbers, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
numbers | *args | Not annotated | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Return detached labels; no arguments selects automatic tick values.
NumberLine.add_labels
NumberLine.add_labels(self, dict_values, direction=None, buff=None, font_size=None, label_constructor=None)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
dict_values | positional or keyword | Not annotated | No default |
direction | positional or keyword | Not annotated | None |
buff | positional or keyword | Not annotated | None |
font_size | positional or keyword | Not annotated | None |
label_constructor | positional or keyword | Not annotated | None |
Return annotation: Not annotated
Attach caller strings/numbers as positioned native Text labels. Existing Mobject labels and TeX/custom constructors remain unsupported by this native-Text profile.
NumberLine.add_numbers
NumberLine.add_numbers(self, x_values=None, excluding=None, **kwargs)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
x_values | positional or keyword | Not annotated | None |
excluding | positional or keyword | Not annotated | None |
kwargs | **kwargs | Not annotated | No default |
Return annotation: Not annotated
Atomically append DecimalNumber labels before playback; expose .numbers. Repeated calls append another label family, rather than replacing the earlier one. Passing ``font`` opts into the native-Text subset. Explicit values keep ordinary numeric labels even when the line has logarithmic scaling.
NumberLine.label_plan
NumberLine.label_plan(self, numbers=None, *, decimal_places=0, exclude_zero=True)
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
numbers | positional or keyword | Not annotated | None |
decimal_places | keyword-only | Not annotated | 0 |
exclude_zero | keyword-only | Not annotated | True |
Return annotation: Not annotated
Noon extension: immutable text/anchor preparation, not label objects. None selects Rust's tick values; an empty iterable selects no labels. Place ordinary Text objects with next_to(label.point, ...) and explicitly group them with the axes when they should move together. Re-prepare after moving the axes; this snapshot is not a live coordinate handle.