SampleSpace
from noon import SampleSpace
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.
A two-dimensional sampling space composed from retained rectangles. Rust owns the rectangle bounds, probability completion, color gradient, partition geometry, family order, and semantic identities. Python retains only Manim's public call shape and wrapper objects.
SampleSpace.__init__
SampleSpace.__init__(self, height: float=3.0, width: float=3.0, fill_color: object=_DEFAULT_FILL, fill_opacity: float=1.0, stroke_width: float=0.5, stroke_color: object=_DEFAULT_STROKE, default_label_scale_val: float=1.0) -> None
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
height | positional or keyword | float | 3.0 |
width | positional or keyword | float | 3.0 |
fill_color | positional or keyword | object | _DEFAULT_FILL |
fill_opacity | positional or keyword | float | 1.0 |
stroke_width | positional or keyword | float | 0.5 |
stroke_color | positional or keyword | object | _DEFAULT_STROKE |
default_label_scale_val | positional or keyword | float | 1.0 |
Return annotation: None
No docstring declared here. Consult the source and host reference.
SampleSpace.complete_p_list
SampleSpace.complete_p_list(self, p_list: float | Iterable[float]) -> list[float]
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
p_list | positional or keyword | float | Iterable[float] | No default |
Return annotation: list[float]
No docstring declared here. Consult the source and host reference.
SampleSpace.get_horizontal_division
SampleSpace.get_horizontal_division(self, p_list: float | Iterable[float], colors: Sequence[object]=_DEFAULT_HORIZONTAL_COLORS, vect: object=_base.DOWN) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
p_list | positional or keyword | float | Iterable[float] | No default |
colors | positional or keyword | Sequence[object] | _DEFAULT_HORIZONTAL_COLORS |
vect | positional or keyword | object | _base.DOWN |
Return annotation: _compat.Group
No docstring declared here. Consult the source and host reference.
SampleSpace.get_vertical_division
SampleSpace.get_vertical_division(self, p_list: float | Iterable[float], colors: Sequence[object]=_DEFAULT_VERTICAL_COLORS, vect: object=_base.RIGHT) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
p_list | positional or keyword | float | Iterable[float] | No default |
colors | positional or keyword | Sequence[object] | _DEFAULT_VERTICAL_COLORS |
vect | positional or keyword | object | _base.RIGHT |
Return annotation: _compat.Group
No docstring declared here. Consult the source and host reference.
SampleSpace.divide_horizontally
SampleSpace.divide_horizontally(self, p_list: float | Iterable[float], colors: Sequence[object]=_DEFAULT_HORIZONTAL_COLORS, vect: object=_base.DOWN) -> SampleSpace
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
p_list | positional or keyword | float | Iterable[float] | No default |
colors | positional or keyword | Sequence[object] | _DEFAULT_HORIZONTAL_COLORS |
vect | positional or keyword | object | _base.DOWN |
Return annotation: SampleSpace
No docstring declared here. Consult the source and host reference.
SampleSpace.divide_vertically
SampleSpace.divide_vertically(self, p_list: float | Iterable[float], colors: Sequence[object]=_DEFAULT_VERTICAL_COLORS, vect: object=_base.RIGHT) -> SampleSpace
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
p_list | positional or keyword | float | Iterable[float] | No default |
colors | positional or keyword | Sequence[object] | _DEFAULT_VERTICAL_COLORS |
vect | positional or keyword | object | _base.RIGHT |
Return annotation: SampleSpace
No docstring declared here. Consult the source and host reference.
SampleSpace.horizontal_parts
SampleSpace.horizontal_parts(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.
SampleSpace.vertical_parts
SampleSpace.vertical_parts(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.
SampleSpace.get_subdivision_braces_and_labels
SampleSpace.get_subdivision_braces_and_labels(self, parts: _compat.Group, labels: list[str | _base.Mobject], direction: object, buff: float=_base.SMALL_BUFF, min_num_quads: int=1) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
parts | positional or keyword | _compat.Group | No default |
labels | positional or keyword | list[str | _base.Mobject] | No default |
direction | positional or keyword | object | No default |
buff | positional or keyword | float | _base.SMALL_BUFF |
min_num_quads | positional or keyword | int | 1 |
Return annotation: _compat.Group
Build Manim's brace and MathTex annotations for a partition family. Pinned Manim v0.21 forwards ``min_num_quads`` into ``Brace`` even though that constructor does not accept it, so the upstream default currently raises ``TypeError: Mobject.__init__() got an unexpected keyword argument 'min_num_quads'``. Noon repairs that broken default behavior for ``1``; other values remain unsupported.
SampleSpace.get_side_braces_and_labels
SampleSpace.get_side_braces_and_labels(self, labels: list[str | _base.Mobject], direction: object=_base.LEFT, **kwargs) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
labels | positional or keyword | list[str | _base.Mobject] | No default |
direction | positional or keyword | object | _base.LEFT |
kwargs | **kwargs | Not annotated | No default |
Return annotation: _compat.Group
No docstring declared here. Consult the source and host reference.
SampleSpace.get_top_braces_and_labels
SampleSpace.get_top_braces_and_labels(self, labels: list[str | _base.Mobject], **kwargs) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
labels | positional or keyword | list[str | _base.Mobject] | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: _compat.Group
No docstring declared here. Consult the source and host reference.
SampleSpace.get_bottom_braces_and_labels
SampleSpace.get_bottom_braces_and_labels(self, labels: list[str | _base.Mobject], **kwargs) -> _compat.Group
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
labels | positional or keyword | list[str | _base.Mobject] | No default |
kwargs | **kwargs | Not annotated | No default |
Return annotation: _compat.Group
No docstring declared here. Consult the source and host reference.
SampleSpace.add_braces_and_labels
SampleSpace.add_braces_and_labels(self) -> SampleSpace
| Parameter | Kind | Annotation | Default |
|---|---|---|---|
self | positional or keyword | Not annotated | No default |
Return annotation: SampleSpace
No docstring declared here. Consult the source and host reference.