Expand description
Commonly used plotting commands.
This module contains types representing many common plotting commands,
implementing Matplotlib and sometimes MatplotlibOpts. Each can be
instantiated using their constructor methods or using a corresponding
function from this module for convenience, e.g.
let p1 = Plot::new([0.0, 1.0, 2.0], [0.0, 2.0, 4.0]);
let p2 = plot([0.0, 1.0, 2.0], [0.0, 2.0, 4.0]);
assert_eq!(p1, p2);Note: Several constructors take iterators of flat 3-, 4-, or 6-element
tuples. This is inconvenient with respect to Iterator::zip, so this
module also provides Associator and assoc to help with
rearrangement.
Structs§
- A horizontal line.
- A line passing through two points.
- A line passing through one point with a slope.
- Some text placed in a plot via axes [0, 1] coordinates.
- A vertical line.
- A bar plot.
- A horizontal bar plot.
- Box(-and-whisker) plots for a number of data sets.
- Set a label on a colorbar.
- Set the plotting limits of the colorbar.
- Set the values and labels for which ticks are placed on a colorbar.
- Set the values for which ticks are placed on a colorbar.
- Add a colorbar to the figure.
- A contour plot for a (x, y, z) surface.
- A filled contour plot for a (x, y, z) surface.
- Default initialization of
figandaxplotting objects. - Default list of imports and library setup, not including
rcParams. - Plot with error bars.
- Plot with asymmetric error bars.
- Some text placed in a figure via figure [0, 1] coordinates.
- A filled area between two horizontal curves.
- A filled area between two vertical curves.
- Set the local variable
axto a different set of axes. - Set the local variable
cbarto a different colorbar. - Set the local variable
figto a different figure. - Set the local variable
imto a different colorbar. - Activate or modify the coordinate grid.
- A histogram of a data set.
- A histogram of two variables.
- A 2D data set as an image.
- Create and refocus to a set of axes inset to
ax. - Set a label on a set of axes.
- Place a legend on a set of axes.
- Set the plotting limits of an axis.
- A pie chart for a single data set.
- A (x, y) plot.
- A (x, y, z) plot.
- Direct injection of arbitrary Python into the prelude.
- A vector field plot.
- A 3D vector field plot.
- Direct injection of arbitrary Python.
- Set the value of an RC parameter.
- Set the scaling of an axis.
- A (x, y) scatter plot.
- A (x, y, z) scatter plot.
- Set the title of the figure.
- Set the X label of the figure.
- Set the title of the figure.
- A 3D surface plot.
- Activate or deactivate TeX text.
- Some text placed in a plot via data coordinates.
- Set the values and labels for which ticks are placed on an axis.
- Set the appearance of ticks, tick labels, and gridlines.
- Set the values for which ticks are placed on an axis.
- Adjust the padding between and around subplots.
- Set the title of a set of axes.
- A 3D surface plot using triangulation.
- Set the view on a set of 3D axes.
- Violin plots for a number of data sets.
Enums§
- An axis of a Matplotlib
AxesorAxes3Dobject. - Like
Axis, but limited to X or Y and with the option of both. - An axis scaling.
Traits§
- Rearrange the grouping of tuples.
Functions§
- Quick shortcut to
Associator::assocthat doesn’t require importing the trait. - Quick shortcut to calling
.mapon an iterator withassoc. - Create a new
AxHLinewith no options. - Create a new
AxLinewith no options. - Create a new
AxLineMwith no options. - Create a new
AxTextwith no options. - Create a new
AxVLinewith no options. - Create a new
Barwith no options. - Create a new
Barwith options from a single iterator. - Create a new
BarHwith no options. - Create a new
BarHwith options from a single iterator. - Create a new
Boxplotwith no options. - Create a new
Boxplotfrom a flattened iterator over a number of data set of sizesize. - Create a new
CLabelwith no options. - Create a new
CLim. - Create a new
Colorbarwith no options. - Create a new
Contourwith no options. - Create a new
Contourwith no options using a flattened iterator over z-coordinates. - Create a new
Contourfwith no options. - Create a new
Contourfwith no options using a flattened iterator over z-coordinates. - Create a new
CTickLabelswith no options. - Create a new
CTickLabelswith no options from a single iterator. - Create a new
CTickswith no options. - Create a new
Errorbarwith no options. - Create a new
Errorbar2with no options. - Create a new
Errorbar2with no options from a single iterator. - Create a new
Errorbarwith no options from a single iterator. - Create a new
FigTextwith no options. - Create a new
FillBetweenwith no options. - Create a new
FillBetweenwith no options from a single iterator. - Create a new
FillBetweenXwith no options. - Create a new
FillBetweenXwith no options from a single iterator. - Create a new
FocusAx. - Create a new
FocusCBar. - Create a new
FocusFig. - Create a new
FocusIm. - Create a new
Gridwith no options. - Create a new
Histwith no options. - Create a new
Hist2dwith no options. - Create a new
Hist2dwith no options from a single iterator. - Create a new
Imshowwith no options. - Create a new
Imshowfrom a flattened, column-major iterator over image data with row lengthrowlen. - Create a new
InsetAxeswith no options. - Create a new
InsetAxeswith no options from (x, y) and (width, height) pairs. - Create a new
Labelwith no options. - Create a new
Legendwith no options. - Create a new
Lim. - Create a new
Piewith no options. - Create a new
Plotwith no options. - Create a new
Plot3with no options. - Create a new
Plot3with no options from a single iterator. - Create a new
Plotwith no options from a single iterator. - Create a new
Prelude. - Create a new
Quiverwith no options. - Create a new
Quiver3with no options. - Create a new
Quiver3with no options from a single iterator. - Create a new
Quiver3with no options from iterators over coordinate triples. - Create a new
Quiverwith no options from a single iterator. The first two elements of each iterator item should be spatial coordinates and the last two should be vector components. - Create a new
Quiverwith no options from iterators over coordinate pairs. - Create a new
Raw. - Create a new
RcParam. - Create a new
Scale. - Create a new
Scatterwith no options. - Create a new
Scatter3with no options. - Create a new
Scatter3with no options from a single iterator. - Create a new
Scatterwith no options from a single iterator. - Create a new
SupTitlewith no options. - Create a new
SupXLabelwith no options. - Create a new
SupYLabelwith no options. - Create a new
Surfacewith no options. - Create a new
Surfacefrom a single flattened, row-major iterator over coordinate data with row lengthrowlen. - Create a new
Surfacefrom flattened, column-major iterators over coordinate data with row lengthrowlen. - Turn TeX text off.
- Turn TeX text on.
- Create a new
Textwith no options. - Create a new
TickParamswith no options. - Create a new
TickLabelswith no options. - Create a new
TickLabelswith no options from a single iterator. - Create a new
Tickswith no options. - Create a new
TightLayoutwith no options. - Create a new
Titlewith no options. - Create a new
Trisurfwith no options. - Create a new
Trisurfwith no options from a single iterator. - Create a new
ViewInitwith no options. - Create a new
Violinplotwith no options. - Create a new
Violinplotfrom a flattened iterator over a number of data set of sizesize. - Create a new
Labelfor the X-axis with no options. - Create a new
Limfor the X-axis. - Create a new
Scalefor the X-axis. - Create a new
TickParamsfor the X-axis with no options. - Create a new
TickLabelsfor the X-axis with no options. - Create a new
TickLabelsfor the X-axis with no options from a single iterator. - Create a new
Ticksfor the X-axis with no options. - Create a new
Labelfor the Y-axis with no options. - Create a new
Limfor the Y-axis. - Create a new
Scalefor the Y-axis. - Create a new
TickParamsfor the Y-axis with no options. - Create a new
TickLabelsfor the Y-axis with no options. - Create a new
TickLabelsfor the Y-axis with no options from a single iterator. - Create a new
Ticksfor the Y-axis with no options. - Create a new
Labelfor the Z-axis with no options. - Create a new
Limfor the Z-axis. - Create a new
Scalefor the Z-axis. - Create a new
TickLabelsfor the Z-axis with no options. - Create a new
TickLabelsfor the Z-axis with no options from a single iterator. - Create a new
Ticksfor the Z-axis with no options.