gnuplot 0.0.38

Rust gnuplot controller
Documentation
// This file is released into Public Domain.
use crate::common::*;
use gnuplot::*;

mod common;

fn example(c: Common)
{
	let x = 0..10;

	let mut fg = Figure::new();

	let ax = fg.axes2d();
	ax.set_title("Color cycling", &[]);
	ax.set_legend(Graph(0.2), Graph(0.9), &[], &[]);
	for i in 0..10
	{
		ax.lines_points(
			x.clone(),
			x.clone().map(|v| v * 2 + i),
			&[Caption(&format!("{}", i))],
		);
	}

	c.show(&mut fg, "color_cycling");
}

fn main()
{
	Common::new().map(|c| example(c));
}