pub struct mjvFigure { /* private fields */ }Implementations§
Source§impl mjvFigure
impl mjvFigure
Sourcepub fn flg_legend(&self) -> bool
pub fn flg_legend(&self) -> bool
show legend
Sourcepub fn set_flg_legend(&mut self, value: bool) -> &mut Self
pub fn set_flg_legend(&mut self, value: bool) -> &mut Self
set show legend
Sourcepub fn flg_extend(&self) -> bool
pub fn flg_extend(&self) -> bool
automatically extend axis ranges to fit data
Sourcepub fn set_flg_extend(&mut self, value: bool) -> &mut Self
pub fn set_flg_extend(&mut self, value: bool) -> &mut Self
set automatically extend axis ranges to fit data
Sourcepub fn flg_barplot(&self) -> bool
pub fn flg_barplot(&self) -> bool
isolated line segments (i.e. GL_LINES)
Sourcepub fn set_flg_barplot(&mut self, value: bool) -> &mut Self
pub fn set_flg_barplot(&mut self, value: bool) -> &mut Self
set isolated line segments (i.e. GL_LINES)
Sourcepub fn flg_selection(&self) -> bool
pub fn flg_selection(&self) -> bool
vertical selection line
Sourcepub fn set_flg_selection(&mut self, value: bool) -> &mut Self
pub fn set_flg_selection(&mut self, value: bool) -> &mut Self
set vertical selection line
Sourcepub fn flg_symmetric(&self) -> bool
pub fn flg_symmetric(&self) -> bool
symmetric y-axis
Sourcepub fn set_flg_symmetric(&mut self, value: bool) -> &mut Self
pub fn set_flg_symmetric(&mut self, value: bool) -> &mut Self
set symmetric y-axis
Sourcepub fn legendoffset(&self) -> i32
pub fn legendoffset(&self) -> i32
number of lines to offset legend
Sourcepub fn set_legendoffset(&mut self, value: i32) -> &mut Self
pub fn set_legendoffset(&mut self, value: i32) -> &mut Self
set number of lines to offset legend
Sourcepub fn set_subplot(&mut self, value: i32) -> &mut Self
pub fn set_subplot(&mut self, value: i32) -> &mut Self
set selected subplot (for title rendering)
Sourcepub fn highlightid(&self) -> i32
pub fn highlightid(&self) -> i32
if id>=0 and no point, highlight id
Sourcepub fn set_highlightid(&mut self, value: i32) -> &mut Self
pub fn set_highlightid(&mut self, value: i32) -> &mut Self
set if id>=0 and no point, highlight id
Sourcepub fn set_linewidth(&mut self, value: f32) -> &mut Self
pub fn set_linewidth(&mut self, value: f32) -> &mut Self
set line width
Sourcepub fn set_gridwidth(&mut self, value: f32) -> &mut Self
pub fn set_gridwidth(&mut self, value: f32) -> &mut Self
set grid line width
Sourcepub fn set_gridrgb(&mut self, value: [f32; 3]) -> &mut Self
pub fn set_gridrgb(&mut self, value: [f32; 3]) -> &mut Self
set grid line rgb
Sourcepub fn figurergba(&self) -> [f32; 4]
pub fn figurergba(&self) -> [f32; 4]
figure color and alpha
Sourcepub fn set_figurergba(&mut self, value: [f32; 4]) -> &mut Self
pub fn set_figurergba(&mut self, value: [f32; 4]) -> &mut Self
set figure color and alpha
Sourcepub fn set_panergba(&mut self, value: [f32; 4]) -> &mut Self
pub fn set_panergba(&mut self, value: [f32; 4]) -> &mut Self
set pane color and alpha
Sourcepub fn legendrgba(&self) -> [f32; 4]
pub fn legendrgba(&self) -> [f32; 4]
legend color and alpha
Sourcepub fn set_legendrgba(&mut self, value: [f32; 4]) -> &mut Self
pub fn set_legendrgba(&mut self, value: [f32; 4]) -> &mut Self
set legend color and alpha
Sourcepub fn set_textrgb(&mut self, value: [f32; 3]) -> &mut Self
pub fn set_textrgb(&mut self, value: [f32; 3]) -> &mut Self
set text color
Sourcepub fn set_selection(&mut self, value: f32) -> &mut Self
pub fn set_selection(&mut self, value: f32) -> &mut Self
set selection line x-value
Sourcepub fn set_range(&mut self, value: [[f32; 2]; 2]) -> &mut Self
pub fn set_range(&mut self, value: [[f32; 2]; 2]) -> &mut Self
set axis ranges (x,y) in data units; (min>=max) automatic
Sourcepub fn set_linepnt(&mut self) -> &mut [i32; 100]
pub fn set_linepnt(&mut self) -> &mut [i32; 100]
mutable number of points in line; (0) disable
Sourcepub fn set_linergb(&mut self) -> &mut [[f32; 3]; 100]
pub fn set_linergb(&mut self) -> &mut [[f32; 3]; 100]
mutable line colors (r,g,b) for legend
Source§impl mjvFigure
impl mjvFigure
Sourcepub fn set_xformat(&mut self, xformat: &str) -> &mut Self
pub fn set_xformat(&mut self, xformat: &str) -> &mut Self
set x-tick label format for sprintf
Sourcepub fn set_yformat(&mut self, yformat: &str) -> &mut Self
pub fn set_yformat(&mut self, yformat: &str) -> &mut Self
set y-tick label format for sprintf
Sourcepub fn set_minwidth(&mut self, minwidth: &str) -> &mut Self
pub fn set_minwidth(&mut self, minwidth: &str) -> &mut Self
set string used to determine min y-tick width
Sourcepub fn set_title(&mut self, title: &str) -> &mut Self
pub fn set_title(&mut self, title: &str) -> &mut Self
set figure title; subplots separated with 2+ spaces
Sourcepub fn set_xlabel(&mut self, xlabel: &str) -> &mut Self
pub fn set_xlabel(&mut self, xlabel: &str) -> &mut Self
set x-axis label
Source§impl mjvFigure
impl mjvFigure
Sourcepub fn linename(&self, index: usize) -> &str
pub fn linename(&self, index: usize) -> &str
line name for legend of index index \in 0..mjMAXLINE
Sourcepub fn set_linename(&mut self, index: usize, name: &str) -> &mut Self
pub fn set_linename(&mut self, index: usize, name: &str) -> &mut Self
set line name for legend of index index \in 0..mjMAXLINE
Sourcepub fn flg_ticklabel(&self) -> [bool; 2]
pub fn flg_ticklabel(&self) -> [bool; 2]
show grid tick labels (x,y)
Sourcepub fn set_flg_ticklabel(&mut self, x: bool, y: bool) -> &mut Self
pub fn set_flg_ticklabel(&mut self, x: bool, y: bool) -> &mut Self
set show grid tick labels (x,y)
Sourcepub fn xaxispixel(&self) -> Range<usize>
pub fn xaxispixel(&self) -> Range<usize>
range of x-axis in pixels
Sourcepub fn yaxispixel(&self) -> Range<usize>
pub fn yaxispixel(&self) -> Range<usize>
range of y-axis in pixels