Crate gnuplot[][src]

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")]);
fg.show();

Re-exports

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::*;

Structs

Axes2D

2D axes that is used for drawing 2D plots

Axes3D

3D axes that is used for drawing 3D plots

CloseSentinel

A sentinel that represents a gnuplot waiting to close.

Figure

A figure that may contain multiple axes.

GnuplotInitError
GnuplotVersion

Gnuplot version identifier. This is used to handle version-specific features.

Enums

AlignType

An enumeration of possible text and label alignments

ArrowheadType

An enumeration of possible arrow head styles

AutoOption

An enumeration of something that can either be fixed (e.g. the maximum of X values), or automatically determined

BorderLocation2D

Plot border locations

ContourStyle

Specifies how the contours are drawn

Coordinate

Specifies how to interpret the coordinate passed to a plotting command

DashType

An enumeration of possible dash styles

FillPatternType

Fill patterns.

FillRegionType

An enumeration of possible fill regions

LabelOption

An enumeration of label options that control label attributes

LegendOption

Legend options

MarginSide

Plot margins

MultiplotFillDirection

Multiplot Fill Order Options

MultiplotFillOrder

Multiplot Fill Order Options

PaletteType

Specifies what sort of palette to use

PlotOption

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

TickOption

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

Traits

AxesCommon
DataType