pub struct PlotPanel {
pub plot_area: PxRect,
pub x: [f64; 2],
pub y: [f64; 2],
pub x_scale: String,
pub y_scale: String,
pub channel: Option<u32>,
pub well: Option<String>,
}Expand description
One plot panel inside the picture, for mapping PNG pixels to data values and back: the
value at the panel’s left edge is x[0], at its right edge x[1], at its bottom y[0]
and at its top y[1], along the scale named in x_scale / y_scale.
Fields§
§plot_area: PxRectThe panel’s rectangle in PNG pixels.
x: [f64; 2]Values at the left and right edges.
y: [f64; 2]Values at the bottom and top edges.
x_scale: Stringlinear, log or asinh.
y_scale: Stringlinear, log or asinh.
channel: Option<u32>Trace previews: the channel drawn in this panel.
well: Option<String>Plate curve previews: the well of this card.
Trait Implementations§
Source§impl<'de> Deserialize<'de> for PlotPanel
impl<'de> Deserialize<'de> for PlotPanel
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for PlotPanel
impl JsonSchema for PlotPanel
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for PlotPanel
impl RefUnwindSafe for PlotPanel
impl Send for PlotPanel
impl Sync for PlotPanel
impl Unpin for PlotPanel
impl UnsafeUnpin for PlotPanel
impl UnwindSafe for PlotPanel
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
impl<T> ErasedDestructor for Twhere
T: 'static,
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
fn into_either(self, into_left: bool) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self> ⓘ
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more