MCPcopy Index your code
hub / github.com/askanium/rustplotlib / set_margins

Method set_margins

src/chart.rs:75–81  ·  view source on GitHub ↗

Set the margins of the chart to provided values.

(mut self, top: isize, right: isize, bottom: isize, left: isize)

Source from the content-addressed store, hash-verified

73
74 /// Set the margins of the chart to provided values.
75 pub fn set_margins(mut self, top: isize, right: isize, bottom: isize, left: isize) -> Self {
76 self.margin_top = top;
77 self.margin_right = right;
78 self.margin_bottom = bottom;
79 self.margin_left = left;
80 self
81 }
82
83 /// Add the dataset to the chart's view.
84 pub fn add_view(mut self, view: &'a dyn View<'a>) -> Self {

Callers 8

mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected