Expand description
Structs§
- Arrows
- A set of arrows.
- Axis
Hints - Axis configuration.
- Bar
- One bar in a
BarChart
. Potentially floating, allowing stacked bar charts. Width can be changed to allow variable-width histograms. - BarChart
- A bar chart.
- BoxElem
- A box in a
BoxPlot
diagram. This is a low level graphical element; it will not compute quartiles and whiskers, letting one use their preferred formula. UsePoints
to draw the outliers. - BoxPlot
- A diagram containing a series of
BoxElem
elements. - BoxSpread
- Contains the values of a single box in a box plot.
- Closest
Elem - Result of
super::PlotItem::find_closest()
search, identifies an element inside the item for immediate use - Coordinates
Formatter - Specifies the coordinates formatting when passed to
Plot::coordinates_formatter
. - Grid
Input - Input for “grid spacer” functions.
- Grid
Mark - One mark (horizontal or vertical line) in the background grid of a plot.
- HLine
- A horizontal line in a plot, filling the full width
- Legend
- The configuration for a plot legend.
- Line
- A series of values forming a path.
- Plot
- A 2D plot, e.g. a graph of a function.
- Plot
Bounds - 2D bounding box of f64 precision.
- Plot
Config - Container to pass-through several parameters related to plot visualization
- Plot
Image - An image in the plot.
- Plot
Memory - Information about the plot that has to persist between frames.
- Plot
Point - A point coordinate in the plot.
- Plot
Response - What
Plot::show
returns. - Plot
Transform - Contains the screen rectangle and the plot bounds and provides methods to transform between them.
- PlotUi
- Provides methods to interact with a plot while building it. It is the single argument of the closure
provided to
Plot::show
. SeePlot
for an example of how to use it. - Points
- A set of points.
- Polygon
- A convex polygon.
- Text
- Text inside the plot.
- VLine
- A vertical line in a plot, filling the full width
Enums§
- Axis
- X or Y axis.
- Color
Conflict Handling - How to handle multiple conflicting color for a legend item.
- Corner
- Where to place the plot legend.
- Cursor
- Indicates a vertical or horizontal cursor line in plot coordinates.
- HPlacement
- Placement of the vertical Y-Axis.
- Line
Style - Solid, dotted, dashed, etc.
- Marker
Shape - Circle, Diamond, Square, Cross, …
- Orientation
- Determines whether a plot element is vertically or horizontally oriented.
- Placement
- Placement of an axis.
- Plot
Geometry - Query the points of the plot, for geometric relations like closest checks
- Plot
Points - Represents many
PlotPoint
s. - VPlacement
- Placement of the horizontal X-Axis.
Traits§
- Plot
Item - Trait shared by things that can be drawn in the plot.
Functions§
- color_
from_ strength - Determine a color from a 0-1 strength value.
- format_
number - Helper for formatting a number so that we always show at least a few decimals, unless it is an integer, in which case we never show any decimals.
- log_
grid_ spacer - Recursively splits the grid into
base
subdivisions (e.g. 100, 10, 1). - uniform_
grid_ spacer - Splits the grid into uniform-sized spacings (e.g. 100, 25, 1).