[][src]Module plotlib::grid

Configure a grid on a plot.

Grids allow for easier estimating of data values. This module allows the configuration of grids on plots.

Grids are created by creating a Grid definition, and adding it to a plot:

The grid lines for plotlib are rendered underneath the data so as to not detract from the data.


use plotlib::grid::Grid;

// let l1 = Line::new() ...
let mut v = ContinuousView::new().add(l1);

// 3 vertical lines and 8 horizontal lines
v.add_grid(Grid::new(3, 8));

// Render plot



Configuration for the grid on a plot