Expand description
A simple gnuplot controller.
§Example
use gnuplot::{Figure, Caption, Color};
let x = [0u32, 1, 2];
let y = [3u32, 4, 5];
let mut fg = Figure::new();
fg.axes2d()
.lines(&x, &y, &[Caption("A line"), Color("black".into())]);
fg.show();
Re-exports§
pub use self::ColorType::*;
pub use self::Coordinate::*;
pub use self::AlignType::*;
pub use self::ArrowheadType::*;
pub use self::AutoOption::*;
pub use self::BorderLocation2D::*;
pub use self::ContourStyle::*;
pub use self::DashType::*;
pub use self::FillPatternType::*;
pub use self::FillRegionType::*;
pub use self::LabelOption::*;
pub use self::LegendOption::*;
pub use self::MarginSide::*;
pub use self::PaletteType::*;
pub use self::PlotOption::*;
pub use self::Tick::*;
pub use self::TickOption::*;
pub use self::XAxis::*;
pub use self::YAxis::*;
Modules§
Structs§
- Axes2D
- 2D axes that is used for drawing 2D plots
- Axes3D
- 3D axes that is used for drawing 3D plots
- Close
Sentinel - A sentinel that represents a gnuplot waiting to close.
- Figure
- A figure that may contain multiple axes.
- Gnuplot
Init Error - Gnuplot
Version - Gnuplot version identifier. This is used to handle version-specific features.
Enums§
- Align
Type - An enumeration of possible text and label alignments
- Arrowhead
Type - An enumeration of possible arrow head styles
- Auto
Option - An enumeration of something that can either be fixed (e.g. the maximum of X values), or automatically determined
- Border
Location2D - Plot border locations
- Color
Type - Option type (for plots, borders, and text) that allows the various different gnuplot color formats. The gnuplot colorspec reference also explains these.
- Contour
Style - Specifies how the contours are drawn
- Coordinate
- Specifies how to interpret the coordinate passed to a plotting command
- Dash
Type - An enumeration of possible dash styles
- Fill
Pattern Type - Fill patterns.
- Fill
Region Type - An enumeration of possible fill regions
- Label
Option - An enumeration of label options that control label attributes
- Legend
Option - Legend options
- Margin
Side - Plot margins
- Multiplot
Fill Direction - Multiplot Fill Order Options
- Multiplot
Fill Order - Multiplot Fill Order Options
- Palette
Type - Specifies what sort of palette to use
- Plot
Option - An enumeration of plot options you can supply to plotting commands, governing things like line width, color and others
- Tick
- Specifies a type of axis tick
- Tick
Option - An enumeration of axis tick options
- XAxis
- An enumeration of possible X-axes
- YAxis
- An enumeration of possible Y-axes
Constants§
- COLOR
- Default Gnuplot palette
- GRAY
- A gray palette
- HELIX
- A nice default for a cube helix
- HOT
- A black body palette
- RAINBOW
- Classic rainbow palette with terrible perceptual properties