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
fig
andax
plotting 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
ax
to a different set of axes. - Set the local variable
cbar
to a different colorbar. - Set the local variable
fig
to a different figure. - Set the local variable
im
to 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
Axes
orAxes3D
object. - 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::assoc
that doesn’t require importing the trait. - Quick shortcut to calling
.map
on an iterator withassoc
. - Create a new
AxHLine
with no options. - Create a new
AxLine
with no options. - Create a new
AxLineM
with no options. - Create a new
AxText
with no options. - Create a new
AxVLine
with no options. - Create a new
Bar
with no options. - Create a new
Bar
with options from a single iterator. - Create a new
BarH
with no options. - Create a new
BarH
with options from a single iterator. - Create a new
Boxplot
with no options. - Create a new
Boxplot
from a flattened iterator over a number of data set of sizesize
. - Create a new
CLabel
with no options. - Create a new
CLim
. - Create a new
Colorbar
with no options. - Create a new
Contour
with no options. - Create a new
Contour
with no options using a flattened iterator over z-coordinates. - Create a new
Contourf
with no options. - Create a new
Contourf
with no options using a flattened iterator over z-coordinates. - Create a new
CTickLabels
with no options. - Create a new
CTickLabels
with no options from a single iterator. - Create a new
CTicks
with no options. - Create a new
Errorbar
with no options. - Create a new
Errorbar2
with no options. - Create a new
Errorbar2
with no options from a single iterator. - Create a new
Errorbar
with no options from a single iterator. - Create a new
FigText
with no options. - Create a new
FillBetween
with no options. - Create a new
FillBetween
with no options from a single iterator. - Create a new
FillBetweenX
with no options. - Create a new
FillBetweenX
with 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
Grid
with no options. - Create a new
Hist
with no options. - Create a new
Hist2d
with no options. - Create a new
Hist2d
with no options from a single iterator. - Create a new
Imshow
with no options. - Create a new
Imshow
from a flattened, column-major iterator over image data with row lengthrowlen
. - Create a new
InsetAxes
with no options. - Create a new
InsetAxes
with no options from (x, y) and (width, height) pairs. - Create a new
Label
with no options. - Create a new
Legend
with no options. - Create a new
Lim
. - Create a new
Pie
with no options. - Create a new
Plot
with no options. - Create a new
Plot3
with no options. - Create a new
Plot3
with no options from a single iterator. - Create a new
Plot
with no options from a single iterator. - Create a new
Prelude
. - Create a new
Quiver
with no options. - Create a new
Quiver3
with no options. - Create a new
Quiver3
with no options from a single iterator. - Create a new
Quiver3
with no options from iterators over coordinate triples. - Create a new
Quiver
with 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
Quiver
with no options from iterators over coordinate pairs. - Create a new
Raw
. - Create a new
RcParam
. - Create a new
Scale
. - Create a new
Scatter
with no options. - Create a new
Scatter3
with no options. - Create a new
Scatter3
with no options from a single iterator. - Create a new
Scatter
with no options from a single iterator. - Create a new
SupTitle
with no options. - Create a new
SupXLabel
with no options. - Create a new
SupYLabel
with no options. - Create a new
Surface
with no options. - Create a new
Surface
from a single flattened, row-major iterator over coordinate data with row lengthrowlen
. - Create a new
Surface
from flattened, column-major iterators over coordinate data with row lengthrowlen
. - Turn TeX text off.
- Turn TeX text on.
- Create a new
Text
with no options. - Create a new
TickParams
with no options. - Create a new
TickLabels
with no options. - Create a new
TickLabels
with no options from a single iterator. - Create a new
Ticks
with no options. - Create a new
TightLayout
with no options. - Create a new
Title
with no options. - Create a new
Trisurf
with no options. - Create a new
Trisurf
with no options from a single iterator. - Create a new
ViewInit
with no options. - Create a new
Violinplot
with no options. - Create a new
Violinplot
from a flattened iterator over a number of data set of sizesize
. - Create a new
Label
for the X-axis with no options. - Create a new
Lim
for the X-axis. - Create a new
Scale
for the X-axis. - Create a new
TickParams
for the X-axis with no options. - Create a new
TickLabels
for the X-axis with no options. - Create a new
TickLabels
for the X-axis with no options from a single iterator. - Create a new
Ticks
for the X-axis with no options. - Create a new
Label
for the Y-axis with no options. - Create a new
Lim
for the Y-axis. - Create a new
Scale
for the Y-axis. - Create a new
TickParams
for the Y-axis with no options. - Create a new
TickLabels
for the Y-axis with no options. - Create a new
TickLabels
for the Y-axis with no options from a single iterator. - Create a new
Ticks
for the Y-axis with no options. - Create a new
Label
for the Z-axis with no options. - Create a new
Lim
for the Z-axis. - Create a new
Scale
for the Z-axis. - Create a new
TickLabels
for the Z-axis with no options. - Create a new
TickLabels
for the Z-axis with no options from a single iterator. - Create a new
Ticks
for the Z-axis with no options.