qewton.visualization.plots.geometry package¶
Module contents¶
Geometry: a geometry drawn without data.
- class qewton.visualization.plots.geometry.GeometryPlot(geometry: Geometry, *, max_vertex_distance: float | None = None, show_edges: bool = True, title: str | None = None, label: str | None = None, opacity: float | None = None)[source]¶
Bases:
PlotA geometry without data, in a uniform color: points as markers, curves as lines, surfaces filled, volumes by their boundary. It uses the geometry interface and Results of the data plots.
- Parameters:
geometry – A discrete geometry, drawn as it is, or a geometry meshed with
create_mesh(max_vertex_distance); with 2 or 3 coordinates.max_vertex_distance – Mesh resolution of a geometry that is not discrete; None for its default.
show_edges – Whether the cell edges of surfaces are drawn.
title – As for
Plot; the label defaults to the geometry’s variable.label – As for
Plot; the label defaults to the geometry’s variable.opacity – Opacity of every element; None for opaque.
- Raises:
ValueError – If the geometry does not have 2 or 3 coordinates.
- geometry¶
The drawn geometry.
- Type:
- show_edges¶
Whether the cell edges of surfaces are drawn.
- Type:
bool
- opacity¶
Opacity of every element.
- Type:
float or None
- property dim: int¶
- property point_encoding: PointEncoding | None¶
- property margin: float¶
Convert a string or number to a floating-point number, if possible.
- property scaled_channels: tuple[str, ...]¶
- 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().