On this page

Axes

from noon import Axes

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.

2D axes with Manim v0.21 ranges, dimensions, filled tips, and scales.

Axes.__init__

Axes.__init__(self, x_range=None, y_range=None, *, x_length=None, y_length=None, tips=True, include_ticks=True, tick_size=0.1, axis_config=None, x_axis_config=None, y_axis_config=None, color=None, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
x_rangepositional or keywordNot annotatedNone
y_rangepositional or keywordNot annotatedNone
x_lengthkeyword-onlyNot annotatedNone
y_lengthkeyword-onlyNot annotatedNone
tipskeyword-onlyNot annotatedTrue
include_tickskeyword-onlyNot annotatedTrue
tick_sizekeyword-onlyNot annotated0.1
axis_configkeyword-onlyNot annotatedNone
x_axis_configkeyword-onlyNot annotatedNone
y_axis_configkeyword-onlyNot annotatedNone
colorkeyword-onlyNot annotatedNone
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_axes

Axes.get_axes(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

Return a retained family grouping the two coordinate axes.

Source declaration

Axes.get_axis

Axes.get_axis(self, index)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
indexpositional or keywordNot annotatedNo default

Return annotation: Not annotated

Return one axis by its Manim index (x=0, y=1).

Source declaration

Axes.get_x_axis

Axes.get_x_axis(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_y_axis

Axes.get_y_axis(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_x_unit_size

Axes.get_x_unit_size(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_y_unit_size

Axes.get_y_unit_size(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_x_axis_label

Axes.get_x_axis_label(self, label, edge=_base.UR, direction=_base.UR, buff=_base.SMALL_BUFF, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
labelpositional or keywordNot annotatedNo default
edgepositional or keywordNot annotated_base.UR
directionpositional or keywordNot annotated_base.UR
buffpositional or keywordNot annotated_base.SMALL_BUFF
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create a retained label next to the upper-right x-axis edge.

Strings and numeric values use MathTex.
Retained text mobjects are placed without recompiling.

Source declaration

Axes.get_y_axis_label

Axes.get_y_axis_label(self, label, edge=_base.UR, direction=_base.UP * 0.5 + _base.RIGHT, buff=_base.SMALL_BUFF, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
labelpositional or keywordNot annotatedNo default
edgepositional or keywordNot annotated_base.UR
directionpositional or keywordNot annotated_base.UP * 0.5 + _base.RIGHT
buffpositional or keywordNot annotated_base.SMALL_BUFF
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create a retained label next to the upper-right y-axis edge.

Source declaration

Axes.get_axis_labels

Axes.get_axis_labels(self, x_label='x', y_label='y')
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
x_labelpositional or keywordNot annotated'x'
y_labelpositional or keywordNot annotated'y'

Return annotation: Not annotated

Create and retain the default x/y label pair.

Source declaration

Axes.get_line_from_axis_to_point

Axes.get_line_from_axis_to_point(self, index, point, line_func=None, line_config=None, color=None, stroke_width=2)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
indexpositional or keywordNot annotatedNo default
pointpositional or keywordNot annotatedNo default
line_funcpositional or keywordNot annotatedNone
line_configpositional or keywordNot annotatedNone
colorpositional or keywordNot annotatedNone
stroke_widthpositional or keywordNot annotated2

Return annotation: Not annotated

Create a retained line from one coordinate axis to a scene point.

Projection uses the selected NumberLine's current shared Rust frame;
this wrapper only selects the axis and forwards constructor options.

Source declaration

Axes.get_vertical_line

Axes.get_vertical_line(self, point, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
pointpositional or keywordNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create a vertical line from the x-axis to a scene point.

Source declaration

Axes.get_horizontal_line

Axes.get_horizontal_line(self, point, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
pointpositional or keywordNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create a horizontal line from the y-axis to a scene point.

Source declaration

Axes.get_lines_to_point

Axes.get_lines_to_point(self, point, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
pointpositional or keywordNot annotatedNo default
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create horizontal and vertical guide lines to a scene point.

Source declaration

Axes.x_axis

Axes.x_axis(self)

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.y_axis

Axes.y_axis(self)

Decorators: property

ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.coords_to_point

Axes.coords_to_point(self, x, y=0.0)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
xpositional or keywordNot annotatedNo default
ypositional or keywordNot annotated0.0

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.point_to_coords

Axes.point_to_coords(self, point)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
pointpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.get_origin

Axes.get_origin(self)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.plot

Axes.plot(self, function, x_range=None, *, use_smoothing=True, discontinuities=(), dt=None, color=None, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
functionpositional or keywordNot annotatedNo default
x_rangepositional or keywordNot annotatedNone
use_smoothingkeyword-onlyNot annotatedTrue
discontinuitieskeyword-onlyNot annotated()
dtkeyword-onlyNot annotatedNone
colorkeyword-onlyNot annotatedNone
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration

Axes.input_to_graph_point

Axes.input_to_graph_point(self, x, graph)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
xpositional or keywordNot annotatedNo default
graphpositional or keywordNot annotatedNo default

Return annotation: Not annotated

Return a callable-backed graph point; retained-path inversion is unsupported.

Source declaration

Axes.plot_samples

Axes.plot_samples(self, points, *, color=None, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
pointspositional or keywordNot annotatedNo default
colorkeyword-onlyNot annotatedNone
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Preserve sample order and repeated x values as a retained polyline.

Source declaration

Axes.get_area

Axes.get_area(self, graph, x_range=None, color=None, opacity=0.3, bounded_graph=None, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
graphpositional or keywordNot annotatedNo default
x_rangepositional or keywordNot annotatedNone
colorpositional or keywordNot annotatedNone
opacitypositional or keywordNot annotated0.3
bounded_graphpositional or keywordNot annotatedNone
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Create one static closed path prepared by the shared Rust query.

Source declaration

Axes.get_riemann_rectangles

Axes.get_riemann_rectangles(self, graph, x_range=None, dx=0.1, input_sample_type='left', stroke_width=1, stroke_color=_base.BLACK, fill_opacity=1, color=(_base.BLUE, _base.GREEN), show_signed_area=True, bounded_graph=None, blend=False, width_scale_factor=1.001)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
graphpositional or keywordNot annotatedNo default
x_rangepositional or keywordNot annotatedNone
dxpositional or keywordNot annotated0.1
input_sample_typepositional or keywordNot annotated'left'
stroke_widthpositional or keywordNot annotated1
stroke_colorpositional or keywordNot annotated_base.BLACK
fill_opacitypositional or keywordNot annotated1
colorpositional or keywordNot annotated(_base.BLUE, _base.GREEN)
show_signed_areapositional or keywordNot annotatedTrue
bounded_graphpositional or keywordNot annotatedNone
blendpositional or keywordNot annotatedFalse
width_scale_factorpositional or keywordNot annotated1.001

Return annotation: Not annotated

Sample original scalar callables against one Rust-captured snapshot.

Source declaration

Axes.add_coordinates

Axes.add_coordinates(self, *axes_numbers, x_config=None, y_config=None, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
axes_numbers*argsNot annotatedNo default
x_configkeyword-onlyNot annotatedNone
y_configkeyword-onlyNot annotatedNone
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

Add default or positional per-axis coordinate labels.

Numeric defaults use retained DecimalNumber labels. Passing ``font``
selects native Text.
Two-axis numeric labels commit together and must use one text type.
Add mixed text types or custom mappings one axis at a time.

Source declaration

Axes.time_series_plan

Axes.time_series_plan(self, samples, *, run_time)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
samplespositional or keywordNot annotatedNo default
run_timekeyword-onlyNot annotatedNo default

Return annotation: Not annotated

Noon extension: map timestamp/value pairs and prepare interval timing.

Samples must be finite and strictly increasing in time. The immutable
result is preparation data for ordinary plays, not a clock or updater.
No interpolation, sorting, or timestamp normalization occurs in Python.

Source declaration

Axes.synchronized_series_plan

Axes.synchronized_series_plan(self, series, *, time_range, run_time)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
seriespositional or keywordNot annotatedNo default
time_rangekeyword-onlyNot annotatedNo default
run_timekeyword-onlyNot annotatedNo default

Return annotation: Not annotated

Noon extension: prepare multiple recordings in one explicit window.

Every recording must cover time_range. Rust splits at the union of input
timestamps and linearly interpolates each series there; it never fills
missing coverage or extrapolates. This immutable, bounded preparation is
for ordinary plays, not a streaming player or a live coordinate cache.

Source declaration

Axes.gapped_series_plan

Axes.gapped_series_plan(self, series, *, break_after, time_range, run_time)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
seriespositional or keywordNot annotatedNo default
break_afterkeyword-onlyNot annotatedNo default
time_rangekeyword-onlyNot annotatedNo default
run_timekeyword-onlyNot annotatedNo default

Return annotation: Not annotated

Prepare explicitly disconnected recordings on one shared time grid.

Supply one strictly increasing list of source break-after indices per
recording. Index i disconnects samples i and i+1; both measured endpoints
remain known. Missing points AND missing drawable segments are None.
Never infer a line from two known points: consult series_segments.
NaN guessing, extrapolation, and hold-last-value filling are not provided.

Source declaration

Axes.plot_implicit_curve

Axes.plot_implicit_curve(self, func, min_depth=5, max_quads=1500, **kwargs)
ParameterKindAnnotationDefault
selfpositional or keywordNot annotatedNo default
funcpositional or keywordNot annotatedNo default
min_depthpositional or keywordNot annotated5
max_quadspositional or keywordNot annotated1500
kwargs**kwargsNot annotatedNo default

Return annotation: Not annotated

No docstring declared here. Consult the source and host reference.

Source declaration