plot::ops
Operators. +, | and / need nothing: a + b overlays two Axes,
a | b puts them side by side and a / b stacks them. This module
adds ↦ ("maps to") for naming the columns of a table to plot,
x first: "date" ↦ "price" reads as the function it draws. It binds
like ==, below arithmetic and |.
Structs
FormulaSource
pub struct FormulaWhich column goes on which axis: x ↦ y.
nabi
let f = "date" ↦ "price";
assert(f.x == "date" && f.y == "price");
Traits
MapsToSource
pub trait MapsToThe ↦ operator.
nabi
use plot::ops::MapsTo;
assert(("t" ↦ "v").y == "v");
x ↦ y: plot columnyagainst columnx.