Expand description
This crate provides functionality for rendering visualizations.
Structs§
- Axis
Band Layer Params - Layer params struct for
AxisBandLayer. - Axis
Linear Layer Params - Layer params struct for
AxisLinearLayer. - BarPlot
Layer Params - Layer params struct for
BarPlotLayer. - Bitmap
Layer Params - Layer params struct for
BitmapLayer. - Categorical
Custom Params - Specifies an RGB value per category and the category per instance.
- Categorical
Params - Specifies a named categorical colormap and the category per instance.
- Channel
Settings - Specify image channel settings, including the intensity window and an RGB color.
- Curve
Layer Params - Layer params struct for
CurveLayer. - Histogram
Layer Params - Layer params struct for
HistogramLayer. - Http
Store Params - Represents a remote Zarr store located on a standard HTTP static file server.
- Instanced
Opacity Params - Per-element opacity, one value (between 0.0 and 1.0) per element.
- Instanced
RgbInterleaved Params - Interleaved analog of
InstancedRgbParams. - Instanced
RgbParams - Explicitly specifies an RGB color per instance.
- Instanced
Size Params - Per-element size (e.g., width or radius), one value per element.
- Legend
Colormap Quantitative Layer Params - Layer params struct for
LegendColormapQuantitativeLayer. - Legend
Point Size Quantitative Layer Params - Layer params struct for
LegendPointSizeQuantitativeLayer. - Line
Layer Params - Layer params struct for
LineLayer. - Local
Store Params - Represents a local, filesystem-backed Zarr directory store.
- Margin
Params - Define plot margins: left, right, top, bottom.
- Memory
Store Params - Represents an in-memory, ephemeral Zarr store.
- OmeZarr
Bitmap Layer Params - Layer params struct for
OmeZarrBitmapLayer. - OmeZarr
Multiscale Layer Params - Layer params struct for
OmeZarrMultiscaleLayer. - Point3d
Layer Params - Layer params struct for
Point3dLayer. - Point
Layer Params - Layer params struct for
PointLayer. - Polygon
Layer Params - Layer params struct for
PolygonLayer. - Quantitative
Params - Specifies a named quantitative colormap and a scalar value per instance.
- RawLayer
Params - Layer parameters in their raw serde Value form.
- RawLayered
Plot Render Params - Specify
LayerParamsfor rendering of one or more layers. - RawRender
Params - The params that are passed to the
crate::render::renderfunction. - Rect
Layer Params - Layer params struct for
RectLayer. - Render
Params - Strongly-typed render params. Mirrors
RawRenderParamsbut acceptslayersas a typedLayerParamsenum instead ofRawLayerParams. - Request
Init - Specify additional options to pass when making HTTP requests.
- Store
Map - A collection of Zarr stores keyed by store name.
- Text
Layer Params - Layer params struct for
TextLayer. - View
Params - Shared rendering parameters at the view level (i.e., not layer-specific).
- Zarr
BarPlot Layer Params - Layer params struct for
ZarrBarPlotLayer. - Zarr
Histogram Layer Params - Layer params struct for
ZarrHistogramLayer. - Zarr
Point3d Layer Params - Layer params struct for
ZarrPoint3dLayer. - Zarr
Point Layer Params - Layer params struct for
ZarrPointLayer. - Zarr
Store Info - A serializable, cross-platform representation of a Zarr store and any associated extensions.
Enums§
- Aspect
Ratio Alignment Mode - Determine what extra data is shown in Contain mode, and what data is hidden in Cover mode.
- Aspect
Ratio Mode - Specifies how the camera and coordinate system should behave when the plotted region (within the margins) has a non-square aspect ratio.
- Axis
Position - Determines where to render an axis layer: top, right, bottom, or left.
- BarOrientation
- Determines whether bar plot should be vertical or horizontal.
- Categorical
Colormap - Named categorical colormap functions.
- Code
Format - The code format for render-to-script outputs.
- Color
Mode - Specify uniform or instanced colors for rendered elements.
- Dimension
Order - Specify the dimension order of an image array.
- Font
Style - Specify the font style: normal, italique, or oblique.
- Font
Weight - Specify the font weight: normal or bold.
- Graphics
Format - The graphics format for outputs.
- Layer
Params - Strongly-typed layer params.
- Legend
Orientation - Determines whether legend should be vertical (left to right colormap) or horizontal (bottom to top colormap).
- Numeric
Data - Typed numeric array supporting multiple dtypes.
- Opacity
Mode - Specify uniform or instanced opacity values for rendered elements.
- Path
Command - A single drawing command, the post-parsed form of an SVG path segment. All coordinates are absolute.
- Point
Shape Mode - Determine whether to render points as squares or circles.
- Quantitative
Colormap - Named quantitative colormap functions.
- RawPlot
Params - Specify how to render a plot.
- Size
Mode - Specify uniform or instanced size (e.g., width or radius) values for rendered elements.
- Text
Align Mode - Specify the horizontal alignment of a text element.
- Text
Baseline Mode - Specify the vertical alignment of a text element.
- Units
Mode - Determines whether size/position values are interpreted in pixel, data, or normalized space.
- View
Mode - Whether displaying 2D versus 3D graphics.
- Zarr
Store Extension - A serializable, cross-platform representation of a Zarr store extension.
- Zarr
Store Params - A serializable, cross-platform representation of a Zarr store.
Functions§
- get_
bounds - Calculate the visible data range based on camera view and other view parameters.
- project
- Projects data-space coordinates to pixel coordinates on screen.
- render
- Given plotting parameters as input, render a graphical (vector or bitmap) output.
- render_
to_ script - Given plotting parameters as input, “render” them to code which can be used to reproduce the plot.
- render_
to_ script_ aux - A variant of render_to_script which allows to keep schema_version as None. This is only intended to prevent extra churn in for the snapshot tests in crates/pluot/tests/test_render_script.rs
- render_
with_ stores - Similar to
render, but also lets the caller pass Zarr store instances via aStoreMap. - unproject
- Unproject pixel coordinates on screen into data-space coordinates.
Type Aliases§
- Uniform
Opacity Params - Static opacity (between 0.0 for fully transparent and 1.0 for fully opaque) shared by every element.
- Uniform
RgbParams - Static (r, g, b) color shared by every instance.
- Uniform
Size Params - Static size (e.g., width or radius) shared by every element.