NcPlotOptions

Type Alias NcPlotOptions 

Source
pub type NcPlotOptions = ncplot_options;
Expand description

Options struct for NcPlotF64 or NcPlotU64

Aliased Type§

#[repr(C)]
pub struct NcPlotOptions { pub maxchannels: u64, pub minchannels: u64, pub legendstyle: u16, pub gridtype: u32, pub rangex: i32, pub title: *const i8, pub flags: u64, }

Fields§

§maxchannels: u64

channels for the maximum and minimum levels. linear or exponential interpolation will be applied across the domain between these two.

§minchannels: u64§legendstyle: u16

styling used for the legend, if NCPLOT_OPTION_LABELTICKSD is set

§gridtype: u32

number of “pixels” per row x column

§rangex: i32

independent variable can either be a contiguous range, or a finite set of keys. for a time range, say the previous hour sampled with second resolution, the independent variable would be the range [0..3600): 3600. if rangex is 0, it is dynamically set to the number of columns.

§title: *const i8

optional, printed by the labels

§flags: u64

bitfield over NCPLOT_OPTION_*

Implementations§

Source§

impl NcPlotOptions

Source

pub const DETECTMAXONLY: u32 = 16u32

Use domain detection only for max

Source

pub const EXPONENTIALD: u32 = 2u32

Exponential dependent axis

Source

pub const LABELTICKSD: u32 = 1u32

Show labels for dependent axis

Source

pub const NODEGRADE: u32 = 8u32

Use domain detection only for max

Source

pub const VERTICALI: u32 = 4u32

Independent axis is vertical