Skip to main content

mjvFigure

Struct mjvFigure 

Source
pub struct mjvFigure { /* private fields */ }

Implementations§

Source§

impl mjvFigure

Source

pub fn flg_legend(&self) -> bool

show legend

Source

pub fn set_flg_legend(&mut self, value: bool) -> &mut Self

set show legend

Source

pub fn flg_extend(&self) -> bool

automatically extend axis ranges to fit data

Source

pub fn set_flg_extend(&mut self, value: bool) -> &mut Self

set automatically extend axis ranges to fit data

Source

pub fn flg_barplot(&self) -> bool

isolated line segments (i.e. GL_LINES)

Source

pub fn set_flg_barplot(&mut self, value: bool) -> &mut Self

set isolated line segments (i.e. GL_LINES)

Source

pub fn flg_selection(&self) -> bool

vertical selection line

Source

pub fn set_flg_selection(&mut self, value: bool) -> &mut Self

set vertical selection line

Source

pub fn flg_symmetric(&self) -> bool

symmetric y-axis

Source

pub fn set_flg_symmetric(&mut self, value: bool) -> &mut Self

set symmetric y-axis

Source

pub fn gridsize(&self) -> [i32; 2]

number of grid points in (x,y)

Source

pub fn legendoffset(&self) -> i32

number of lines to offset legend

Source

pub fn set_legendoffset(&mut self, value: i32) -> &mut Self

set number of lines to offset legend

Source

pub fn subplot(&self) -> i32

selected subplot (for title rendering)

Source

pub fn set_subplot(&mut self, value: i32) -> &mut Self

set selected subplot (for title rendering)

Source

pub fn highlight(&self) -> [i32; 2]

if point is in legend rect, highlight line

Source

pub fn highlightid(&self) -> i32

if id>=0 and no point, highlight id

Source

pub fn set_highlightid(&mut self, value: i32) -> &mut Self

set if id>=0 and no point, highlight id

Source

pub fn linewidth(&self) -> f32

line width

Source

pub fn set_linewidth(&mut self, value: f32) -> &mut Self

set line width

Source

pub fn gridwidth(&self) -> f32

grid line width

Source

pub fn set_gridwidth(&mut self, value: f32) -> &mut Self

set grid line width

Source

pub fn gridrgb(&self) -> [f32; 3]

grid line rgb

Source

pub fn set_gridrgb(&mut self, value: [f32; 3]) -> &mut Self

set grid line rgb

Source

pub fn figurergba(&self) -> [f32; 4]

figure color and alpha

Source

pub fn set_figurergba(&mut self, value: [f32; 4]) -> &mut Self

set figure color and alpha

Source

pub fn panergba(&self) -> [f32; 4]

pane color and alpha

Source

pub fn set_panergba(&mut self, value: [f32; 4]) -> &mut Self

set pane color and alpha

Source

pub fn legendrgba(&self) -> [f32; 4]

legend color and alpha

Source

pub fn set_legendrgba(&mut self, value: [f32; 4]) -> &mut Self

set legend color and alpha

Source

pub fn textrgb(&self) -> [f32; 3]

text color

Source

pub fn set_textrgb(&mut self, value: [f32; 3]) -> &mut Self

set text color

Source

pub fn selection(&self) -> f32

selection line x-value

Source

pub fn set_selection(&mut self, value: f32) -> &mut Self

set selection line x-value

Source

pub fn range(&self) -> [[f32; 2]; 2]

axis ranges (x,y) in data units; (min>=max) automatic

Source

pub fn set_range(&mut self, value: [[f32; 2]; 2]) -> &mut Self

set axis ranges (x,y) in data units; (min>=max) automatic

Source

pub fn linepnt(&self) -> &[i32; 100]

number of points in line; (0) disable

Source

pub fn set_linepnt(&mut self) -> &mut [i32; 100]

mutable number of points in line; (0) disable

Source

pub fn linergb(&self) -> &[[f32; 3]; 100]

line colors (r,g,b) for legend

Source

pub fn set_linergb(&mut self) -> &mut [[f32; 3]; 100]

mutable line colors (r,g,b) for legend

Source§

impl mjvFigure

Source

pub fn xformat(&self) -> &str

x-tick label format for sprintf

Source

pub fn set_xformat(&mut self, xformat: &str) -> &mut Self

set x-tick label format for sprintf

Source

pub fn yformat(&self) -> &str

y-tick label format for sprintf

Source

pub fn set_yformat(&mut self, yformat: &str) -> &mut Self

set y-tick label format for sprintf

Source

pub fn minwidth(&self) -> &str

string used to determine min y-tick width

Source

pub fn set_minwidth(&mut self, minwidth: &str) -> &mut Self

set string used to determine min y-tick width

Source

pub fn title(&self) -> &str

figure title; subplots separated with 2+ spaces

Source

pub fn set_title(&mut self, title: &str) -> &mut Self

set figure title; subplots separated with 2+ spaces

Source

pub fn xlabel(&self) -> &str

x-axis label

Source

pub fn set_xlabel(&mut self, xlabel: &str) -> &mut Self

set x-axis label

Source§

impl mjvFigure

Source

pub fn linename(&self, index: usize) -> &str

line name for legend of index index \in 0..mjMAXLINE

Source

pub fn set_linename(&mut self, index: usize, name: &str) -> &mut Self

set line name for legend of index index \in 0..mjMAXLINE

Source

pub fn flg_ticklabel(&self) -> [bool; 2]

show grid tick labels (x,y)

Source

pub fn set_flg_ticklabel(&mut self, x: bool, y: bool) -> &mut Self

set show grid tick labels (x,y)

Source

pub fn xaxispixel(&self) -> Range<usize>

range of x-axis in pixels

Source

pub fn yaxispixel(&self) -> Range<usize>

range of y-axis in pixels

Source

pub fn xaxisdata(&self) -> Range<f32>

range of x-axis in data units

Source

pub fn yaxisdata(&self) -> Range<f32>

range of y-axis in data units

Trait Implementations§

Source§

impl Clone for mjvFigure

Source§

fn clone(&self) -> mjvFigure

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for mjvFigure

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for mjvFigure

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Copy for mjvFigure

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

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

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.