MCPcopy Create free account
hub / github.com/cpmech/plotpy / options_quiver

Method options_quiver

src/stream.rs:264–282  ·  view source on GitHub ↗

Returns options for quiver

(&self)

Source from the content-addressed store, hash-verified

262
263 /// Returns options for quiver
264 fn options_quiver(&self) -> String {
265 let mut opt = String::new();
266 if self.color != "" {
267 write!(&mut opt, ",color='{}'", self.color).unwrap();
268 }
269 if self.quiver_scale > 0.0 {
270 write!(&mut opt, ",scale={}", self.quiver_scale).unwrap();
271 }
272 if self.quiver_pivot != "" {
273 write!(&mut opt, ",pivot='{}'", self.quiver_pivot).unwrap();
274 }
275 if self.quiver_zorder > 0 {
276 write!(&mut opt, ",zorder={}", self.quiver_zorder).unwrap();
277 }
278 if self.quiver_extra != "" {
279 write!(&mut opt, ",{}", self.quiver_extra).unwrap();
280 }
281 opt
282 }
283}
284
285impl GraphMaker for Stream {

Callers 2

draw_arrowsMethod · 0.80
draw_arrows_altMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected