pub struct BoxPlot { /* private fields */ }
Expand description
A diagram containing a series of BoxElem
elements.
Implementations
sourceimpl BoxPlot
impl BoxPlot
sourcepub fn new(boxes: Vec<BoxElem, Global>) -> BoxPlot
pub fn new(boxes: Vec<BoxElem, Global>) -> BoxPlot
Create a plot containing multiple boxes
. It defaults to vertically oriented elements.
sourcepub fn color(self, color: impl Into<Color32>) -> BoxPlot
pub fn color(self, color: impl Into<Color32>) -> BoxPlot
Set the default color. It is set on all elements that do not already have a specific color.
This is the color that shows up in the legend.
It can be overridden at the element level (see BoxElem
).
Default is Color32::TRANSPARENT
which means a color will be auto-assigned.
sourcepub fn name(self, name: impl ToString) -> BoxPlot
pub fn name(self, name: impl ToString) -> BoxPlot
Name of this box plot diagram.
This name will show up in the plot legend, if legends are turned on. Multiple series may share the same name, in which case they will also share an entry in the legend.
sourcepub fn vertical(self) -> BoxPlot
pub fn vertical(self) -> BoxPlot
Set all elements to be in a vertical orientation. Argument axis will be X and values will be on the Y axis.
sourcepub fn horizontal(self) -> BoxPlot
pub fn horizontal(self) -> BoxPlot
Set all elements to be in a horizontal orientation. Argument axis will be Y and values will be on the X axis.