MCPcopy Index your code
hub / github.com/cpmech/plotpy / options

Method options

src/boxplot.rs:273–309  ·  view source on GitHub ↗

Returns options (optional parameters) for boxplot

(&self)

Source from the content-addressed store, hash-verified

271
272 /// Returns options (optional parameters) for boxplot
273 fn options(&self) -> String {
274 let mut opt = String::new();
275 if self.symbol != "" {
276 write!(&mut opt, ",sym=r'{}'", self.symbol).unwrap();
277 }
278 if self.horizontal {
279 write!(&mut opt, ",vert=False").unwrap();
280 }
281 if self.whisker != None {
282 write!(&mut opt, ",whis={}", self.whisker.unwrap()).unwrap();
283 }
284 if self.positions.len() > 0 {
285 write!(&mut opt, ",positions=positions").unwrap();
286 }
287 if self.width != None {
288 write!(&mut opt, ",widths={}", self.width.unwrap()).unwrap();
289 }
290 if self.no_fliers {
291 write!(&mut opt, ",showfliers=False").unwrap();
292 }
293 if self.patch_artist {
294 write!(&mut opt, ",patch_artist=True").unwrap();
295 }
296 if self.median_props != "" {
297 write!(&mut opt, ",medianprops={}", self.median_props).unwrap();
298 }
299 if self.box_props != "" {
300 write!(&mut opt, ",boxprops={}", self.box_props).unwrap();
301 }
302 if self.whisker_props != "" {
303 write!(&mut opt, ",whiskerprops={}", self.whisker_props).unwrap();
304 }
305 if self.extra != "" {
306 write!(&mut opt, ",{}", self.extra).unwrap();
307 }
308 opt
309 }
310}
311
312impl GraphMaker for Boxplot {

Callers 2

drawMethod · 0.45
draw_matMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected