pub struct Plot {
pub title: String,
pub date: String,
pub name: String,
pub padded: bool,
pub commands: Vec<String>,
pub options: Vec<String>,
pub dimensions: Option<Vec<usize>>,
pub variables: Vec<Variable>,
pub data: Data,
}Expand description
One plot: a header plus a block of data (struct plot in the C).
Fields§
§title: String§date: String§name: StringThe Plotname: line, e.g. Transient Analysis.
padded: boolFlags: … padded/unpadded: whether short vectors are padded
with zeros up to No. Points in the data section.
commands: Vec<String>§options: Vec<String>§dimensions: Option<Vec<usize>>Dimensions: of the plot, when multidimensional (e.g. a nested
.dc sweep). Product must equal No. Points.
variables: Vec<Variable>§data: DataImplementations§
Source§impl Plot
impl Plot
pub fn num_points(&self) -> usize
pub fn is_complex(&self) -> bool
Sourcepub fn scale(&self) -> Option<&Variable>
pub fn scale(&self) -> Option<&Variable>
The scale vector: the first variable, by 3f5 convention (the writer moves the scale to the front before writing).
Sourcepub fn variable_index(&self, name: &str) -> Option<usize>
pub fn variable_index(&self, name: &str) -> Option<usize>
Index of a variable by name, case-insensitive (vector names in
the 3f5 front end compare with cieq).
Sourcepub fn real_values(&self, name: &str) -> Option<&[f64]>
pub fn real_values(&self, name: &str) -> Option<&[f64]>
Real column by variable name, if this is a real plot.
Sourcepub fn complex_values(&self, name: &str) -> Option<&[Complex64]>
pub fn complex_values(&self, name: &str) -> Option<&[Complex64]>
Complex column by variable name, if this is a complex plot.
Trait Implementations§
impl StructuralPartialEq for Plot
Auto Trait Implementations§
impl Forget for Plot
impl Freeze for Plot
impl Move for Plot
impl RefUnwindSafe for Plot
impl Send for Plot
impl Sync for Plot
impl Unpin for Plot
impl UnsafeUnpin for Plot
impl UnwindSafe for Plot
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more