qewton.visualization.plots.data package¶
Module contents¶
Submodules¶
qewton.visualization.plots.data.bar module¶
Bar: a bar per point of a one-dimensional domain.
- class qewton.visualization.plots.data.bar.BarPlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None)[source]¶
Bases:
DataPlotA bar per point of a one-dimensional domain, from 0 to y: e.g. a value per batch element (
x=batch, y=u).- Parameters:
data – title, label, opacity, mask: As for
DataPlot.data_config – title, label, opacity, mask: As for
DataPlot.position – title, label, opacity, mask: As for
DataPlot.x – title, label, opacity, mask: As for
DataPlot.y – title, label, opacity, mask: As for
DataPlot.color – title, label, opacity, mask: As for
DataPlot.color_scale – title, label, opacity, mask: As for
DataPlot.controls – title, label, opacity, mask: As for
DataPlot.
- :paramtitle, label, opacity, mask: As for
- channels: tuple[str, ...] = ('x', 'y', 'color')¶
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 1): <class 'qewton.visualization.plots.result.BarResult'>, (Structure.MESH, 1): <class 'qewton.visualization.plots.result.BarResult'>, (Structure.POINTS, 0): <class 'qewton.visualization.plots.result.BarResult'>}¶
- dims: tuple[int, ...] = (2,)¶
- train_scales(axes: dict[str, Scale]) None[source]¶
See
train_scales(); the y range also holds 0, where the bars start.
qewton.visualization.plots.data.base module¶
Base class DataPlot for plots of data described by a
DataConfiguration, and the binding of channels to references.
- qewton.visualization.plots.data.base.drawable_geometry(axes: list[Axes]) DiscreteGeometry[source]¶
The geometry whose points are the elements of the given axes.
- Parameters:
axes – Axes of a DataConfiguration, none of them a FeatureAxes.
- Returns:
- The geometry of a single GeometryAxes; otherwise
an IndexGridGeometry over the axes’ shape (one point for no axes), whose coordinates are the indices.
- Return type:
- Raises:
ValueError – If a GeometryAxes holds no discrete geometry.
- qewton.visualization.plots.data.base.grid_values(domain: DiscreteGeometry, values: ndarray, columns: tuple[int, int] = (0, 1)) tuple[source]¶
Values per point of a rectilinear 2D grid, arranged as an image.
- Parameters:
domain – A geometry of
Structure.GRIDwith two axes.values – One row per point (row-major over the domain’s shape), shape
(n,)or(n, k).columns – The coordinates of the domain drawn along x and y.
- Returns:
- The coordinates along x and along y, and the values of
shape
(ny, nx)or(ny, nx, k).
- Return type:
tuple
- qewton.visualization.plots.data.base.controlled_axes(data_config: DataConfiguration, control: ControlAxis) Axes[source]¶
The axes of data_config a control reduces.
- Parameters:
data_config – A DataConfiguration.
control – A control axis referencing an Axes of it or a Variable.
- Returns:
- Axes of one tensor axis of the domain: a batch axis, or a
GeometryAxes whose whole geometry the control steps through.
- Return type:
- Raises:
ValueError – If the reference is no such axes, e.g. a feature, a geometry of several tensor axes, or a component of a geometry that is no factor of it (e.g. the time of space-time points without a product structure).
- qewton.visualization.plots.data.base.split_products(data, data_config: DataConfiguration, references: list) tuple[source]¶
Give every factor of a product geometry that a reference names tensor axes of its own; the other factors stay together as one product (see
subproduct()).- Parameters:
data – Tensor described by data_config, of any backend.
data_config – Its DataConfiguration.
references – Bound references: Variables, Axes, tuples of them, Selectors or None.
- Returns:
- The data reshaped (and its axes permuted where the other
factors are not adjacent) and its configuration; both unchanged if no reference names a factor.
- Return type:
tuple
- class qewton.visualization.plots.data.base.Binding(channel: str, reference: Variable | Axes | Selector, component: int | None, in_domain: bool)[source]¶
Bases:
objectOne channel bound to one component of a reference.
- Parameters:
channel – The channel, e.g.
"x"or"color".reference – A Variable or Axes of the plot’s DataConfiguration, or a Selector of Variables.
component – Index of the component within the reference, or None for all of its components.
in_domain – Whether the reference lies in the domain D (geometry, batch or index axes) rather than in the values V (features).
- channel: str¶
- component: int | None¶
- in_domain: bool¶
- property title: str | None¶
The name of the bound component.
- qewton.visualization.plots.data.base.visible_cells(cells: ndarray, visible: ndarray) ndarray[source]¶
The cells whose points are all drawn.
- Parameters:
cells – Point indices per cell, shape
(n_cells, k).visible – Whether each point is drawn, shape
(n_points,).
- Returns:
The rows of cells without a hidden point.
- Return type:
numpy.ndarray
- qewton.visualization.plots.data.base.n_components(reference: Variable | Axes) int[source]¶
The number of values a reference gives per point.
- Parameters:
reference – A Variable or Axes.
- Returns:
- The geometry’s dimension for a GeometryAxes, the Variable’s
dimension for a Variable, otherwise 1.
- Return type:
int
- class qewton.visualization.plots.data.base.DataPlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, z=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None)[source]¶
Bases:
PlotDraws one kind of mark from data described by a DataConfiguration.
Positions are bound as
position=(a geometry Variable, a GeometryAxes or BatchAxes, a feature with up to 3 components, or a tuple of one-component references; fills x, y, z in order), per channel asx=,y=,z=(one component each), or both for channels position leaves free, e.g.position=X, z=ufor a 2D domain lifted by a value. The channels bound are x, y and possibly z. Where a binding comes from follows from its reference:a position from the domain D: the drawn domain is the geometry (or batch axes) the positions belong to; every other dimension of D must be reduced by a control axis.
all positions from the values V: every point of the dimensions of D not reduced by a control is one element.
On a product geometry (e.g. a space-time mesh in one GeometryAxes, or a rectilinear grid), a factor named by a control gets tensor axes of its own, e.g.
position=X, controls=[SliderAxis(T)]on data over T x X, orposition=(x_1, x_2), controls=[SliderAxis(x_3)]on a 3D grid.A tuple of variables in
yorzdraws one copy per variable; anOverlayAxisone copy per state.- Parameters:
data – Tensor described by data_config, of any backend.
data_config – Its DataConfiguration.
position – Position bindings.
x – Position bindings.
y – Position bindings.
z – Position bindings.
color – Reference or Selector for the color channel.
color_scale – ColorScale of the color channel; a new one if None. Plot types whose color values are colors themselves take none. With a Selector: one ColorScale shared by the candidates (one range over all of them), a list with one per candidate, or None for a new one per candidate.
controls – Control axes for the dimensions not drawn.
title – As for
Plot.label – As for
Plot.opacity – Opacity of every element.
mask – A feature with one component; points where it is 0 or NaN are not drawn and do not train the scales, e.g. the points outside a domain given per sample.
- Raises:
ValueError – At construction, if a binding names a channel the plot type does not have or a reference not in data_config, a dimension of D is neither drawn nor controlled, the number of positions or the drawn domain is not supported by the plot type, a required channel is missing, or color_scale is a list that does not give one scale per Selector candidate.
- channels¶
Channels the plot type accepts (class attribute).
- Type:
tuple of str
- required¶
Channels that must be bound (class attribute).
- Type:
tuple of str
- results¶
{(Structure, topological_dim): Result class}for the drawn domains the plot type supports (class attribute).- Type:
dict
- dims¶
Supported numbers of position components (class attribute).
- Type:
tuple of int
- domain_positions¶
Whether positions must come from the domain (class attribute).
- Type:
bool
- color_mapped¶
Whether color values are mapped through a ColorScale; otherwise they are colors themselves, passed to
build()with all their components (class attribute).- Type:
bool
- data, data_config
The data and its configuration, with the axes of a product geometry split into the factors the references name (see
split_products()).
- domain¶
The drawn domain.
- Type:
- result_class¶
The Result class the plot draws.
- Type:
type
- n_positions¶
Number of bound position components.
- Type:
int
- bindings¶
The position bindings, then the color binding (if any), of the first copy.
- Type:
list of Binding
- color_scale¶
Scale of the color channel in the current states (of the chosen Selector candidate), None without a color binding.
- Type:
ColorScale or None
- opacity¶
Opacity of every element.
- Type:
float or None
Notes
Subclasses declare the class attributes and implement
build().- channels: tuple[str, ...] = ('x', 'y', 'z', 'color')¶
- required: tuple[str, ...] = ()¶
- dims: tuple[int, ...] = (2, 3)¶
- domain_positions = False¶
- color_mapped = True¶
- result_type(domain: DiscreteGeometry) type[Result][source]¶
The Result class the plot type draws on domain.
- Parameters:
domain – The drawn domain.
- Returns:
A subclass of Result, looked up in results.
- Return type:
type
- Raises:
ValueError – If the plot type cannot draw on domain.
- classmethod draws(domain: DiscreteGeometry) bool[source]¶
Whether the plot type draws on domain, as declared in results.
- Parameters:
domain – A drawn domain.
- Returns:
True if it does.
- Return type:
bool
- classmethod supports(domain: DiscreteGeometry, n_positions: int) bool[source]¶
Whether the plot type draws on domain with n_positions position components, as declared in results and dims.
- Parameters:
domain – A drawn domain.
n_positions – Number of position components.
- Returns:
True if it does.
- Return type:
bool
- property n_copies: int¶
- property n_positions: int¶
- property dim: int¶
- property color_scale: ColorScale | None¶
- property color_scales: list[ColorScale]¶
- property active_color_scales: list[ColorScale]¶
- property scaled_channels: tuple[str, ...]¶
The position channels bound to components of one reference, e.g. x and y of
position=X; not those of different references, e.g. x and z ofposition=X, z=u.
- property color_title: str | None¶
- channels_of(selector: Selector) tuple[str, ...][source]¶
See
channels_of().
- axis_title(channel: str) str | None[source]¶
See
axis_title().
- train_scales(axes: dict[str, Scale]) None[source]¶
See
train_scales().
- evaluate() list[Result][source]¶
See
evaluate().
- build(positions: ndarray, color: ndarray | None, features: ndarray, visible: ndarray) Result[source]¶
The Result of one copy in one state, without the common fields (label, colors, opacity), which
evaluate()sets; points not visible are not drawn.- Parameters:
positions – Shape
(n, dim), one row per point of domain (row-major over its shape).color – Color value per point, shape
(n,); with all components, shape(n, k), if not color_mapped; None without a color binding.features – The values of every feature in the copy’s state, shape
(n, n_features), for plot types drawing further features.visible – Whether each point is drawn (see mask), shape
(n,).
- Returns:
An instance of
result_type().- Return type:
- property domain_columns: tuple[int, ...]¶
The coordinate of the domain each drawn position from the domain shows, in the order x, y, z, e.g.
(1, 0)forx=x_2, y=x_1.
qewton.visualization.plots.data.heatmap module¶
Heatmap: a 2D domain drawn flat, its cells colored by a value.
- class qewton.visualization.plots.data.heatmap.HeatmapPlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None, show_edges: bool = False)[source]¶
Bases:
DataPlotA 2D domain drawn flat, its cells colored by a value: a rectilinear grid as an image of cells, a mesh as filled triangles.
- Parameters:
data – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.data_config – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.position – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.x – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.y – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.color – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.color_scale – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.controls – title, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.
- :paramtitle, label, opacity, mask: As for
DataPlot; the positions are the domain’s coordinates and color is required.
- Parameters:
show_edges – Whether the cell edges of a mesh are drawn.
- show_edges¶
Whether the cell edges of a mesh are drawn.
- Type:
bool
- channels: tuple[str, ...] = ('x', 'y', 'color')¶
- required: tuple[str, ...] = ('color',)¶
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 2): <class 'qewton.visualization.plots.result.HeatmapResult'>, (Structure.MESH, 2): <class 'qewton.visualization.plots.result.SurfaceResult'>}¶
- dims: tuple[int, ...] = (2,)¶
- point_encoding: PointEncoding | None = 1¶
- margin: float = 0.0¶
- domain_positions = True¶
qewton.visualization.plots.data.image module¶
Image: a rectilinear 2D grid of colors.
- class qewton.visualization.plots.data.image.ImagePlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, color: Variable | Selector | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None)[source]¶
Bases:
DataPlotA rectilinear 2D grid of colors: the color channel is an RGB or RGBA feature with components in [0, 1], drawn as it is (no ColorScale); components outside are clipped.
- Parameters:
data – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.data_config – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.position – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.x – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.y – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.controls – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.title – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.label – opacity, mask: As for
DataPlot; the positions are the domain’s coordinates.
- :paramopacity, mask: As for
DataPlot; the positions are the domain’s coordinates.
- Parameters:
color – A feature (or a Selector of features) with 3 or 4 components.
- Raises:
ValueError – As for DataPlot, and if a color reference does not have 3 or 4 components.
- channels: tuple[str, ...] = ('x', 'y', 'color')¶
- required: tuple[str, ...] = ('color',)¶
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 2): <class 'qewton.visualization.plots.result.ImageResult'>}¶
- dims: tuple[int, ...] = (2,)¶
- point_encoding: PointEncoding | None = 1¶
- margin: float = 0.0¶
- domain_positions = True¶
- color_mapped = False¶
qewton.visualization.plots.data.line module¶
Line: a line through a one-dimensional domain.
- class qewton.visualization.plots.data.line.LinePlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, z=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None, width: float | None = None, dash: str | None = None)[source]¶
Bases:
DataPlotA line through a one-dimensional domain in its order: along x for a graph (
x=T, y=u) or through positions from the values for a path (position=r). A color varies along the line; a point set on a line is ordered by its coordinate.- Parameters:
data – title, label, opacity, mask: As for
DataPlot.data_config – title, label, opacity, mask: As for
DataPlot.position – title, label, opacity, mask: As for
DataPlot.x – title, label, opacity, mask: As for
DataPlot.y – title, label, opacity, mask: As for
DataPlot.z – title, label, opacity, mask: As for
DataPlot.color – title, label, opacity, mask: As for
DataPlot.color_scale – title, label, opacity, mask: As for
DataPlot.controls – title, label, opacity, mask: As for
DataPlot.
- :paramtitle, label, opacity, mask: As for
- Parameters:
width – Line width, or None for the theme’s.
dash – Dash pattern, e.g.
"dash", or None for a solid line.
- width¶
Line width.
- Type:
float or None
- dash¶
Dash pattern.
- Type:
str or None
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 1): <class 'qewton.visualization.plots.result.LineResult'>, (Structure.MESH, 1): <class 'qewton.visualization.plots.result.LineResult'>, (Structure.POINTS, 0): <class 'qewton.visualization.plots.result.LineResult'>}¶
- classmethod draws(domain: DiscreteGeometry) bool[source]¶
As
draws(); a point set additionally needs one coordinate to be ordered by.
qewton.visualization.plots.data.scatter module¶
Scatter: a marker per element.
- class qewton.visualization.plots.data.scatter.ScatterPlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, z=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None, size: float | None = None, symbol: str | None = None)[source]¶
Bases:
DataPlotA marker per element: the points of a domain, or samples with positions from the values. With one position component the markers lie on the x axis of a 2D cell, e.g. the points of a 1D domain.
- Parameters:
data – title, label, opacity, mask: As for
DataPlot.data_config – title, label, opacity, mask: As for
DataPlot.position – title, label, opacity, mask: As for
DataPlot.x – title, label, opacity, mask: As for
DataPlot.y – title, label, opacity, mask: As for
DataPlot.z – title, label, opacity, mask: As for
DataPlot.color – title, label, opacity, mask: As for
DataPlot.color_scale – title, label, opacity, mask: As for
DataPlot.controls – title, label, opacity, mask: As for
DataPlot.
- :paramtitle, label, opacity, mask: As for
- Parameters:
size – Marker size, or None for the theme’s.
symbol – Marker symbol, or None for the default.
- size¶
Marker size.
- Type:
float or None
- symbol¶
Marker symbol.
- Type:
str or None
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 0): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.GRID, 1): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.GRID, 2): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.GRID, 3): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.MESH, 0): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.MESH, 1): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.MESH, 2): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.MESH, 3): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.POINTS, 0): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.POINTS, 1): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.POINTS, 2): <class 'qewton.visualization.plots.result.MarkerResult'>, (Structure.POINTS, 3): <class 'qewton.visualization.plots.result.MarkerResult'>}¶
- dims: tuple[int, ...] = (1, 2, 3)¶
- property point_encoding: PointEncoding | None¶
Colored points of a domain show their values by color.
- property dim: int¶
qewton.visualization.plots.data.surface module¶
Surface: a surface drawn in 3D.
- class qewton.visualization.plots.data.surface.SurfacePlot(data, data_config: DataConfiguration, *, position=None, x=None, y=None, z=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None, show_edges: bool = False)[source]¶
Bases:
DataPlotA surface in 3D: a 2D domain lifted by a height from the values (
position=X, z=u), a surface with 3D coordinates (e.g. the boundary of a body), or a volume drawn by its boundary. Bindcolorto color it, e.g. by the height.- Parameters:
data – title, label, opacity, mask: As for
DataPlot.data_config – title, label, opacity, mask: As for
DataPlot.position – title, label, opacity, mask: As for
DataPlot.x – title, label, opacity, mask: As for
DataPlot.y – title, label, opacity, mask: As for
DataPlot.z – title, label, opacity, mask: As for
DataPlot.color – title, label, opacity, mask: As for
DataPlot.color_scale – title, label, opacity, mask: As for
DataPlot.controls – title, label, opacity, mask: As for
DataPlot.
- :paramtitle, label, opacity, mask: As for
- Parameters:
show_edges – Whether the cell edges are drawn.
- show_edges¶
Whether the cell edges are drawn.
- Type:
bool
- cells¶
The drawn triangles as point indices.
- Type:
numpy.ndarray
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 2): <class 'qewton.visualization.plots.result.SurfaceResult'>, (Structure.GRID, 3): <class 'qewton.visualization.plots.result.SurfaceResult'>, (Structure.MESH, 2): <class 'qewton.visualization.plots.result.SurfaceResult'>, (Structure.MESH, 3): <class 'qewton.visualization.plots.result.SurfaceResult'>}¶
- dims: tuple[int, ...] = (3,)¶
- point_encoding: PointEncoding | None = 1¶
- margin: float = 0.0¶
qewton.visualization.plots.data.vector module¶
Vector: an arrow per point.
- class qewton.visualization.plots.data.vector.VectorPlot(data, data_config: DataConfiguration, *, vector: Variable, position=None, x=None, y=None, z=None, color: Variable | Selector | None = None, color_scale: ColorScale | list[ColorScale] | None = None, vector_scale: VectorScale | None = None, subsample: int = 1, controls: tuple[ControlAxis, ...] | list[ControlAxis] = (), title: str | None = None, label: str | None = None, opacity: float | None = None, mask: Variable | None = None)[source]¶
Bases:
DataPlotAn arrow per point, from a vector feature with one component per position component. A VectorScale turns the vectors into arrows in data units, so every renderer draws the same arrows. Bind
colorto color them, e.g.color=vfor the magnitude.- Parameters:
data – title, label, opacity, mask: As for
DataPlot.data_config – title, label, opacity, mask: As for
DataPlot.position – title, label, opacity, mask: As for
DataPlot.x – title, label, opacity, mask: As for
DataPlot.y – title, label, opacity, mask: As for
DataPlot.z – title, label, opacity, mask: As for
DataPlot.color – title, label, opacity, mask: As for
DataPlot.color_scale – title, label, opacity, mask: As for
DataPlot.controls – title, label, opacity, mask: As for
DataPlot.
- :paramtitle, label, opacity, mask: As for
- Parameters:
vector – The vector feature.
vector_scale – Scale of the arrows; a new one if None. Share one instance for equal arrow lengths across plots.
subsample – Draw every n-th arrow.
- Raises:
ValueError – As for DataPlot, and if vector is not a feature with one component per position component, or subsample is not positive.
- vector_scale¶
Scale of the arrows.
- Type:
- subsample¶
Every n-th arrow is drawn.
- Type:
int
- results: dict[tuple[Structure, int], type[Result]] = {(Structure.GRID, 0): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.GRID, 1): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.GRID, 2): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.GRID, 3): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.MESH, 0): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.MESH, 1): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.MESH, 2): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.MESH, 3): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.POINTS, 0): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.POINTS, 1): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.POINTS, 2): <class 'qewton.visualization.plots.result.ArrowResult'>, (Structure.POINTS, 3): <class 'qewton.visualization.plots.result.ArrowResult'>}¶
- point_encoding: PointEncoding | None = 2¶
- train_scales(axes: dict[str, Scale]) None[source]¶
See
train_scales(); also trains the vector scale on the magnitudes.