[][src]Struct plotlib::grid::Grid

pub struct Grid {
    pub nx: u32,
    pub ny: u32,
    pub color: String,

Configuration for the grid on a plot

Supports changing the number of grid lines for the x and y dimensions. Note: for categorical plots, only horizontal lines will be shown.


nx: u32

Number of vertical grid lines (defaults to 3)

ny: u32

Number of horizontal grid lines (defaults to 3)

color: String

Color of the grid lines (defaults to "darkgrey")


impl Grid[src]

pub fn new(nx: u32, ny: u32) -> Grid[src]

Create a new grid with nx vertical and ny horizontal grid lines

The default colour is "darkgrey".

Trait Implementations

impl Default for Grid[src]

Auto Trait Implementations

impl RefUnwindSafe for Grid

impl Send for Grid

impl Sync for Grid

impl Unpin for Grid

impl UnwindSafe for Grid

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized

impl<T> Borrow<T> for T where
    T: ?Sized

impl<T> BorrowMut<T> for T where
    T: ?Sized

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.