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

Function arrow_woks

src/canvas.rs:1451–1458  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1449
1450 #[test]
1451 fn arrow_woks() {
1452 let mut canvas = Canvas::new();
1453 canvas.draw_arrow(0.0, 0.0, 1.0, 1.0);
1454 let b: &str =
1455 "p=pat.FancyArrowPatch((0,0),(1,1),shrinkA=0,shrinkB=0,path_effects=[pff.Stroke(joinstyle='miter')],edgecolor='#427ce5')\n\
1456 plt.gca().add_patch(p)\n";
1457 assert_eq!(canvas.buffer, b);
1458 }
1459
1460 #[test]
1461 fn circle_works() {

Callers

nothing calls this directly

Calls 1

draw_arrowMethod · 0.80

Tested by

no test coverage detected